Coder Social home page Coder Social logo

530tatted530 / arduinocloud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arduino-libraries/arduinocloud

0.0 1.0 0.0 47 KB

Easly connect your Arduino/Genuino board to the Arduino Cloud

Home Page: https://cloud.arduino.cc/

License: GNU Lesser General Public License v2.1

C 49.31% C++ 50.69%

arduinocloud's Introduction

This library is DEPRECATED and is no more supported

Arduino Cloud Library

Use this library to connect your Arduino/Genuino to Arduino cloud. To have your configurations ready follow the getting started or go to the cloud dashboard.

1. Supported devices

1.1. Zero + WiFi101, MKR1000

Important
Make sure to have the correct SSL certificate for arduino.cc. Look here for the the update instuctions.

1.2. Yun-Shield

Important
The yun or yun shield firmware should be >=1.6.2. Look here for the the upgrade instuctions.

2. Credits

The library is based on the Paho Library.

Special thanks to Joël Gähwiler author of arduino-mqtt library for his work on porting the paho library on Arduino.

3. APIs

3.1. Setup and Configuration

  • ArduinoCloudThing()

  • void begin(const char* name, const char* username, const char* id, const char* password, Client &client)

3.2. Property configuration

3.2.1. Simple property

  • void addProperty(const char* name, const char* datatype, const char* permission)

3.2.2. Policy managed property

Is possible to specify a policy as:

  • ON_CHANGE: the value will be written only if it is changed

  • TIMED: is necessary to specify a lapse (seconds)

  • void addProperty(const char* name, const char* datatype, const char* permission, const char* policy)

  • void addProperty(const char* name, const char* datatype, const char* permission, const char* policy, int lapse)

3.2.3. Other object property

An object can also read or write a property of another object, is just necessary to specify the other object’s name

  • void addExternalProperty(const char* other_device_name, const char* name, const char* datatype)

3.3. Write properties

  • void writeProperty(const char* name, char* value)

  • void writeProperty(const char* name, float value)

  • void writeProperty(const char* name, int value)

  • void writeProperty(const char* name, String value)

3.4. Read properties

  • String readProperty(const char* name)

  • String readProperty(const char* other_device_name, const char* name)

3.5. Extra

  • void poll()

  • void push()

  • void enableDebug()

  • void disableDebug()

4. Variables

4.1. Permissions

  • R - The property can be only written from the device

  • RW - The property can be written and from the device and can update the value from other objects

4.2. Polices

  • TIMED - Waiting seconds before update a new data

  • ON_CHANGE - Publish value only on change

4.3. Data Type

4.3.1. Standard

  • CHARSTRING

  • FLOAT

  • INT

4.3.2. Temperature

  • TEMPERATURE_C - celsius

  • TEMPERATURE_F - fahrenheit

4.3.3. Lenght

  • LENGHT_M - meters

  • LENGHT_C - centimeters

  • LENGHT_I - inches

4.3.4. Vars

  • PERCENTAGE

  • ANALOG

  • LUMEN

  • PPM - gas part per million

  • STATUS - on/off

5. Debug

The default debug output is on SerialUSB, in order to change the output is necessary to edit CLOUD_DEBUG_SERIAL at the begin of src/ArduinoCloudThingBase.h

arduinocloud's People

Contributors

agdl avatar cmaglie avatar facchinm avatar lorenzoromagnoli avatar marcusjoh avatar per1234 avatar peteous avatar sandeepmistry avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.