1.AT+QMTCFG=version,0,1
OK
2. AT+QMTOPEN=0,mqtts.heclouds.com,1883 OK
+QMTOPEN: 0,0
3. AT+QMTCONN=0,"test","DRxz68X7vz","version=2018-10-31&res=products%2FDRxz68X7vz%2Fdevices%2Ftest&et=171799679489&method=md5&sign=zfYRH%2Fwr5aQvSGifVobpUQ%3D%3D"
OK
+QMTCONN: 0,0,0
4. AT+QMTSUB=0,1,"$sys/DRxz68X7vz/test/dp/post/json/accepted",0 OK
+QMTSUB: 0,1,0,0
5.AT+QMTPUB=0,0,0,0,"$sys/DRxz68X7vz/test/dp/post/json",55,{"id":123,"dp":{"TEMP":[{"v":30.1}],"humi":[{"v":30}]}}
OK
注:55为{"id":123,"dp":{"TEMP":[{"v":30.1}],"humi":[{"v":30}]}}这一串的字节长度。
+QMTPUB: 0,0,0
+QMTRECV: 0,0,"$sys/DRxz68X7vz/test/dp/post/json/accepted","{"id":123}"