当前位置:网站首页>Qs100 at command mqtt access thingsboard

Qs100 at command mqtt access thingsboard

2022-06-12 05:10:00 Cocoa core

One 、 technological process

The process of judging networking is not written , Just write it down MQTT Command operation flow of

  1. newly build MQTT
    AT+MQNEW=xx.xx.xx.xx,1883,5000,200
    
    +MQNEW:0
    
    OK
    
  2. L Be careful :
    • Version4(QS100 It only supports version4)
    • Need to add WILL Information and passord, Just fill it in , Otherwise, the link will not succeed
    	AT+MQCON=0,4,"ac3fec30-740d-11ec-bd2e-27176d3ae09b",1000,1,1,"WILL",1,0,2,"3838","rCeBhUPApA3dbO8CaDJ8","password"
    	
    	OK
    	
    	+MQCONNACK:0,0
    
  3. Release data
    • Length is data String The length of
    • The data is HEX String form
    AT+MQPUB=0,"v1/devices/me/telemetry",1,0,0,19,7B226D7367223A22746573745F6D717474227D
    
    OK
    
    +MQPUBACK:0
    
原网站

版权声明
本文为[Cocoa core]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203010620503307.html