To generate a API key , 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 |
---|---|---|
method | "POST" or "GET" | For How you want to send data ,Only Value "post" or "get" Always use it |
uid | Device UniqueID |
Always use it |
key | Encrypted key |
Device API secret key Always use it |
cmd | One of these:
"on" "off" "get" "ping" |
only use one of these commands when you send a requests to iotbind
"on" If you want to send on Command to Device Switch "off" If you want to send off Command to Device Switch "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 |
level | numbers |
Use it only for update Tank level |
temperature | numbers |
(optional) Use it only for update Tank temperature |
{"MESSAGE":"UPDATED"}
{
"uid": "UniqueID",
"name": "DeviceName",
"type": "Water Level",
"cmd": "on",
"level": "67",
"level_unit": "%",
"temperature": "21",
"temperature_unit": "C"
}
{"MESSAGE":"UPDATED"}
{
"uid": "UniqueID",
"name": "DeviceName",
"type": "Water Level",
"cmd": "on",
"level": "67",
"level_unit": "%",
"temperature": "21",
"temperature_unit": "C"
}
{"MESSAGE":"PING OK"}
{"MESSAGE":"PING OK"}