Ali cloud platform payLoad set the reference Things

Outline

Many developers in the use Ali cloud platform to do things the message upward, often do not know how to set up: payload, commissioning equipment to bring a lot of trouble. Explained the official documentation of the problem: Ali cloud IoT Suite not developed pub Message payload those specific fields, customers need to develop their own protocol based on application scenarios, and then into the pub inside the message carrier to the service end in JSON format. Actually not too easy to understand. In this paper, combined with the online platform adjustment, the use of the log service function to define the payload, to avoid unnecessary modify the test.

During operation

1, start the device side, ensure that the equipment end of the line
_

2, to monitor the operation and maintenance -> In-Circuit Debugger
_

3, log tracking
_

4, the code set (other properties consistent with the above process is provided)

request.payloadObj = "{\"id\":\"230788029\",\"method\":\"thing.event.property.post\",\"params\":{\"Status\":0,\"Data\":\"Hello, World!\"},\"version\":\"1.0\"}";

5, the device operating status
_

Reference links

End use of the device SDK

Guess you like

Origin yq.aliyun.com/articles/706272