救救萌新吧
可能是那个PASSWORD的原因,我之前生成PASSWORD的时候DEVICE SECRET那一栏填成MQTT连接参数里面的PASSWORD了,后面改成填DEVICE SECRET就可以了
我在连接阿里云注册三元组的时候,连接失败 [2023-03-07_16:49:15:183]AT+CWMODE=1
[2023-03-07_16:49:15:183]OK [2023-03-07_16:49:20:856]AT+CWJAP="iotccn-office2","12345678" [2023-03-07_16:49:20:856]WIFI DISCONNECT [2023-03-07_16:49:21:233]WIFI CONNECTED [2023-03-07_16:49:21:959]WIFI GOT IP
[2023-03-07_16:49:21:959]OK [2023-03-07_16:49:23:757]AT+CIPSNTPCFG=1,8,"ntp1.aliyun.com"
[2023-03-07_16:49:23:757]OK [2023-03-07_16:49:26:291]AT+MQTTUSERCFG=0,2,"","","",0,0,""
[2023-03-07_16:49:26:291]OK [2023-03-07_16:49:34:438]AT+CIPSTAMAC? [2023-03-07_16:49:34:438]+CIPSTAMAC:"30:83:98:8c:7f:1c"
[2023-03-07_16:49:34:438]OK [2023-03-07_16:50:25:260]AT+MQTTUSERNAME=0,"3083988c7f1c&a1gh70UicfD"
[2023-03-07_16:50:25:260]OK [2023-03-07_16:52:44:573]AT+MQTTPASSWORD=0,"ee35fb864b2bc07b8132d21a1e87e8bf"
[2023-03-07_16:52:44:573]OK
[2023-03-07_16:54:50:778]AT+MQTTCLIENTID=0,"3083988c7f1c|securemode=2,authType=register,random=12345,signmethod=hmacmd5|"
[2023-03-07_16:54:50:778]OK [2023-03-07_16:55:08:152]AT+MQTTCONN=0,"a1gh70UicfD.iot-as-mqtt.cn-shanghai.aliyuncs.com",1883,1 [2023-03-07_16:55:11:780]+MQTTDISCONNECTED:0 [2023-03-07_16:55:16:796] [2023-03-07_16:55:16:796]ERROR
配置MQTT客户端ID时,加入timestamp会导致mqtt密码错误,取消即可。 如:AT+MQTTCLIENTID=0,"a1VcbE8fN18.esp01s|securemode=2,signmethod=hmacsha256|"
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。