Updated on 2024-12-02 GMT+08:00

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: