SDK Usage
Introduction
The Huawei Cloud Device Python SDK provides abundant demo code for devices to communicate with the platform and implement device, gateway, and over-the-air (OTA) services. The SDK greatly simplifies device development and enables quick access to the platform. This section uses an example to describe how to use the SDK to quickly connect MQTT devices to the Huawei Cloud IoT platform. For details, see IoT Device Python SDK.
Requirements
- Python 3.11.4 has been installed.
- The third-party class library paho-mqtt 2.0.0 has been installed.
- The third-party class library schedule 1.2.2 has been installed.
- The third-party class library APScheduler 3.10.4 has been installed.
- The third-party class library requests 2.32.2 has been installed (optional, used in the demo of gateway and child device management).
- The third-party class library tornado 6.3.3 has been installed (optional, used in the demo of gateway and child device management).
You can run requirement/install_requirements.py to install dependencies.
Change History
|
Version |
Change |
Description |
|---|---|---|
|
1.2.0 |
Function addition |
Added the functions of rule engine, device provisioning, customized reconnection upon disconnection, and component version upgrade. |
|
1.1.4 |
Function addition |
Supported gateway mode for OTA upgrade. |
|
1.1.3 |
Function enhancement |
Updated the CA certificate for the server. |
|
1.1.2 |
Function addition |
Supported MicroPython and the corresponding demo, OTA downloading from OBS, and description documents. |
|
1.1.1 |
Function addition |
Provided capabilities for connections to the Huawei Cloud IoT platform to facilitate service scenarios such as secure access, device management, data collection, and command delivery. |
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