If the third-party application needs to receive the reported message from device, the developer needs to enable message push as follows:
- Fill in the server configuration;
- Verify the server address;
- Implement business logic based on message format.
Currently, the AIOT open platform supports the following two types of messages:
- Resource Message : the change of device resource value, such as door closure, temperature change, power change and so on;
- Device Message : the change of the device status, such as online, offline, binding, unbundling and so on.
Note that a third party application needs to return a JSON message in the specified format after receiving the message in the following format:
{
"code": 0|ErrorCode,
"result": "custom content"
}