Prerequisites
Installing Go Language
go get github.com/huaweicloud/huaweicloud-iot-device-sdk-go
Obtaining Source Code
- Development environment: Go 1.18 or later
- Download the SDK. The project contains multiple subprojects.
Table 1 Go SDK directory structure Directory
Item
Description
iot
callback
Client callback function
client
Device client
config
Client configuration
constants
Constant package
device
Directly connected device client
file
File upload and download
gateway
Gateway device client
model
Structure package
rule
Device rule package
sample
bs
Device provisioning demo
command
Command demo
file
File upload and download demo
device
Directly connected device client
file
File upload and download
gateway
Gateway device client
log
Device log demo
message
Message reporting and delivery demo
ota
OTA upgrade demo
properties
Device property demo
rule
Device rule demo
test_model
Test structure
test_util
Test tool class
test_sync
Time synchronization demo
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