From b15a6fa8f61f4285d9b57d28060cb98f19c9f7d8 Mon Sep 17 00:00:00 2001 From: ctlove0523 <478309639@qq.com> Date: Sun, 28 Feb 2021 16:24:22 +0800 Subject: [PATCH] update device id --- samples/message/msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/message/msg.go b/samples/message/msg.go index 5210c52..aff57a5 100644 --- a/samples/message/msg.go +++ b/samples/message/msg.go @@ -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.