لإنشاء مفتاح تشفير API key للجهاز , من خلال لوحة التحكم إضغط على ايقونة المفتاح لنفس الجهاز و من ثم إضغط على أيقون التحديث و سيتم إنشاء مفتاح التشفير و بإمكانك إنشاء مفتاح جديد كل مرة تقوم بنفس الخطوات
المتغيرات و ترميز البيانات | القيمة المرسلة | التوضيح |
---|---|---|
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 "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 |
{"MESSAGE":"UPDATED"}
{
"uid": "UniqueID",
"name": "DeviceName",
"type": "RGB Light",
"cmd": "on",
"data1": "Anything",
"data1_unit": "Anything",
"data2": "Anything",
"data2_unit": "Anything",
"data3": "Anything",
"data3_unit": "Anything"
}
{"MESSAGE":"UPDATED"}
{
"uid": "UniqueID",
"name": "DeviceName",
"type": "RGB Light",
"cmd": "on",
"data1": "Anything",
"data1_unit": "Anything",
"data2": "Anything",
"data2_unit": "Anything",
"data3": "Anything",
"data3_unit": "Anything"
}
{"MESSAGE":"PING OK"}
{"MESSAGE":"PING OK"}