update device id
This commit is contained in:
parent
2181695565
commit
b15a6fa8f6
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
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()
|
||||
|
||||
// 注册平台下发消息的callback,当收到平台下发的消息时,调用此callback.
|
||||
|
|
Loading…
Reference in New Issue