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 need to send on Command to Device Switch "off" If you need to send off Command to Device Switch "get" If you need get all device data frome iotBind platform "ping" If you need send ping Command to iotBind platform to learn that the device is connected Note: When the device is connected by MQTT protocol, the connection status will be updated directly by server |
level | numbers
| Use it only for update Tank level
|
temperature | numbers
| (optional) Use it only for update Tank temperature |
{
"uid":"Device UniqueID",
"key":"Device API secret key",
"level":"Anything",
"temperature":"Anything"
}
{
"uid":"Device UniqueID",
"key":"Device API secret key",
"cmd":"get"
}
{
"uid":"UniqueID",
"name":"DeviceName",
"type":"Water Level",
"cmd":"on",
"level":"67",
"level_unit":"%",
"temperature":"21",
"temperature_unit":"C"
}
{
"uid":"UniqueID",
"name":"DeviceName",
"type":"Water Level",
"cmd":"on",
"level":"67",
"level_unit":"%",
"temperature":"21",
"temperature_unit":"C"
}
{
"uid":"UniqueID",
"key":"Device API secret key",
"cmd":"on"
}
{
"uid":"UniqueID",
"key":"Device API secret key",
"cmd":"on",
"level":"67",
"temperature":"21"
}
{
"uid":"Device UniqueID",
"key":"Device API secret key",
"cmd":"ping"
}