Skip to content

Commit d27f874

Browse files
author
Fabrizio Mirabito
committedNov 20, 2018
updated README.md
1 parent 1bae763 commit d27f874

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ ArduinoCloud.closeCloudMonitor(connectionId, deviceId).then(topic => {
5959
// Send a property value to a device
6060
// - value can be a string, a boolean or a number
6161
// - timestamp is a unix timestamp, not required
62-
ArduinoCloud.sendProperty(connectionId, deviceId, name, value, timestamp).then(() => {
62+
ArduinoCloud.sendProperty(connectionId, thingId, name, value, timestamp).then(() => {
6363
// Property value sent
6464
});
6565

6666
// Register a callback on a property value change
6767
//
68-
ArduinoCloud.onPropertyValue(connectionId, deviceId, propertyName, updateCb).then(() => {
68+
ArduinoCloud.onPropertyValue(connectionId, thingId, propertyName, updateCb).then(() => {
6969
// updateCb(message) will be called every time a new value is available. Value can be string, number, or a boolean depending on the property type
7070
});
7171

0 commit comments

Comments
 (0)
Please sign in to comment.