Adds a variable/property with a set of parameters.
ArduinoCloud.addProperty(cloudVariable, tag, permission, policy, callbackFunction)
cloudVariable
- name of the variable/property.permission
- can either be READ
/ WRITE
or READWRITE
policy
- ON_CHANGE
(whenever variable data changes) or <seconds> * SECONDS
. <seconds>
is specified in the Thing configuration.callBackFunction
- by default, a callback function is added to a variable with WRITE permissions. A variable called test
will automatically be added as onTestChange
which also is added to your sketch.Nothing.