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.