SDK Usage
Introduction
The IoT Device ArkTS (OpenHarmony) SDK provides abundant demo code for devices to communicate with the platform.
Requirements
Usage
- Download and installation: In DevEco Studio, run the following command to import and install the SDK.
ohpm install @huaweicloud/iot-device-sdk
- Permission configuration: To use the SDK, add the ohos.permission.INTERNET permission to requestPermissions in the module.json5 file.
{ "module": { "requestPermissions": [ { "name": "ohos.permission.INTERNET" } ] } }
Change History
|
Version |
Change |
Description |
|---|---|---|
|
0.0.1 |
Function addition |
Added the capability of connecting to the Huawei Cloud IoT platform to facilitate service scenarios such as access, device management, 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