update device id

This commit is contained in:
ctlove0523 2021-02-28 16:24:22 +08:00
parent 2181695565
commit b15a6fa8f6
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import (
func main() { func main() {
// 创建一个设备并初始化 // 创建一个设备并初始化
device := iot.CreateIotDevice("5fdb75cccbfe2f02ce81d4bf_go-mqtt", "123456789", "tls://iot-mqtts.cn-north-4.myhuaweicloud.com:8883") device := iot.CreateIotDevice("5fdb75cccbfe2f02ce81d4bf_chentong", "123456789", "tls://iot-mqtts.cn-north-4.myhuaweicloud.com:8883")
device.Init() device.Init()
// 注册平台下发消息的callback当收到平台下发的消息时调用此callback. // 注册平台下发消息的callback当收到平台下发的消息时调用此callback.