Functions
The SDK is designed for embedded devices with powerful computing and storage capabilities. You can call SDK APIs to implement communication between devices and the platform. The table below lists the functions supported by the SDK.
|
Function |
Description |
|---|---|
|
Served as a client for connecting devices to the Huawei Cloud platform using MQTT. Secret authentication and certificate authentication are supported. |
|
|
Used to reconnect the device periodically until a successful connection is established after disconnection due to network instability or other causes. |
|
|
Used by a device to report custom data to the platform, which then forwards reported messages to an application or other Huawei Cloud services for storage and processing. |
|
|
Used by a device to report property data in the format defined in the product model to the platform. |
|
|
Used by the platform to deliver a command to a device. After the platform delivers a command, the device needs to return the command execution result to the platform in a timely manner. |
|
|
Used to store the device online status, latest device properties reported, and device configurations to deliver. |
|
|
Used to download OTA upgrade packages from the platform. |
|
|
Used by a device to send a request for synchronizing time with the platform. |
|
|
Gateway devices: Devices that directly connect to the platform using a protocol supported by the platform. Child devices: Devices that do not support the TCP/IP protocol stack cannot communicate directly with the IoT platform. They use gateways to forward data. Currently, only devices that are directly connected to the platform using MQTT can be used as gateway devices. |
|
|
Used by devices to upload run logs, configuration files, and other files to the platform for log analysis, fault locating, and device data backup. |
|
|
Used to continuously detect security threats. Detected items: memory leakage, abnormal ports, CPU usage, disk space, and battery power. |
|
|
Used by the platform to trigger collaborative response of multiple devices to implement device linkage and intelligent control. Currently, the platform supports cloud rules and device rules. |
|
|
MQTT 5.0 is supported. Added new features: data comparison, functions of Clean Start and Session Expiry Interval, payload identifier and content type, topic alias, and user attribute. |
|
|
A TLS encryption algorithm. |
|
|
Used for remotely updating system parameters and runtime parameters without interrupting device running. |
|
|
Used to remotely log in to a device through the console in SSH mode. You can enter commands supported by the device on the console to debug functions and locate faults, facilitating device management and remote O&M. |
|
|
Used to convert third-party protocols (protocols other than HTTP, MQTT, and LwM2M) outside the platform. It is recommended that a gateway be used to convert third-party protocols into MQTT. |
|
|
Used for HarmonyOS. The platform delivers device groups, and devices can interconnect through the soft bus. The platform can manage security groups and deliver group members' communication authorization identifiers. |
|
|
Used to dynamically complete initial configuration of devices in different batches in scenarios where devices are distributed to different regions and instances. Certificate authentication and secret authentication are supported. Data that has been distributed can be transmitted through IoTDA. |
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