s
To generate a API key for device, click on the key icon After adding the device And Click on the refresh icon To generate a new key Any time.
Parameter | Value | Description |
---|---|---|
uid | UniqueID | Device UniqueID Always use it When you want to send an update or get data |
key | Encrypted key
| Device API secret key
Always use it When you want to send an update or get data |
cmd |
One of these: "on" "off" "get" "ping" |
only use one of these commands when you send message to iotbind
"on" If you want to send on Command to Device "off" If you want to send off Command to Device "get" If you want get all device data frome iotBind platform "ping" If you want send ping Command to iotBind platform to learn that the device is connected |
data1 | Text or numbers
| (optional) Use it only for update data1
|
data2 | Text or numbers
| (optional) Use it only for update data2 |
data3 | Text or numbers
| (optional) Use it only for update data3 |
{
"uid":"UniqueID",
"name":"DeviceName",
"cmd":"on",
"data1":"Anything",
"data2":"Anything",
"data3":"Anything"
}
{
"uid":"Device UniqueID",
"key":"Device API secret key",
"cmd":"off",
"data1":"Anything",
"data2":"Anything",
"data3":"Anything"
}
{
"uid":"Device UniqueID",
"key":"Device API secret key",
"cmd":"get"
}
{
"uid":"Device UniqueID",
"key":"Device API secret key",
"cmd":"ping"
}