Communication Modes
Devices connect to the platform and communicate with an application through the platform. The following figure shows the communication between devices, application, and the platform.
Device Sending Data to the Platform
A device can connect to and communicate with the platform. Data can be sent to the platform through the following APIs:
-
API for reporting a message: When a device cannot report data in the property format defined in the product model, it can use this API to report custom data to the platform, which then forwards the data to the application or other Huawei Cloud services for storage and processing.
-
API for reporting device properties: used by a device to report properties in the format defined in the product model to the platform.
-
API for batch reporting device properties: used by a gateway to report properties of multiple devices in batches to the platform.
Application Delivering Commands to Devices
An application can use the following APIs to send commands to a device that has been connected to the platform:
-
API for delivering a message: used by the platform to deliver data in a custom format to a device.
-
API for setting device properties: The product model of a device defines the properties that the platform can set for the device. An application can use this API to modify the properties of a device.
-
API for querying device properties: used by an application to query properties of a device in real time.
- API for delivering a command: used by an application to deliver commands in the format defined in the product model to a device.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot