|
- 三色灯 阿里云
- {
- "ProductKey": "a12LzEcBhZL",
- "DeviceName": "device_test_2",
- "DeviceSecret": "fba8fc1089ed47e83f6fec5cdca77cbf"
- }
- ProductSecret:o4HcYRHq937HGedL
- MQTT连接参数
- clientId
- a12LzEcBhZL.device_test_2|securemode=2,signmethod=hmacsha256,timestamp=2524608000000|
- username
- device_test_2&a12LzEcBhZL
- passwd
- 4cf8bf3809556e2b863a31b757b1d4013339afc06f18e27b72703c724ab9078f
- mqttHostUrl
- a12LzEcBhZL.iot-as-mqtt.cn-shanghai.aliyuncs.com
- port
- 1883
- {"clientId":"a12LzEcBhZL.device_test_2|securemode=2,signmethod=hmacsha256,timestamp=2524608000000|","username":"device_test_2&a12LzEcBhZL","mqttHostUrl":"a12LzEcBhZL.iot-as-mqtt.cn-shanghai.aliyuncs.com","passwd":"4cf8bf3809556e2b863a31b757b1d4013339afc06f18e27b72703c724ab9078f","port":1883}
- publish 内容
- 位置:/sys/a12LzEcBhZL/device_test_2/thing/event/property/post
- {
- "method":"thing.event.property.post",
- "id":"123",
- "version": "1.0",
- "sys":{"ack":1},
- "params":{
- "LED_Red":{"value": 1},
- "LED_Yellow":{"value": 1},
- "LED_Green":{"value": 0}
- }
- }
- Subscribe内容
- 位置:/sys/a12LzEcBhZL/device_test_2/thing/event/property/post_reply
- 返回值:
- {"code":200,"data":{},"id":"123","message":"success","method":"thing.event.property.post","version":"1.0"}
复制代码 |
|