
AT command set
Your TrustWorthy Industrial IoT Partner
www.pusr.com
34
<CR><LF>+OK=<sta><CR><LF>
Set
AT+MQTTPUBCUSEN=<sta><CR>
<CR><LF>+OK<CR><LF>
Parameter
sta
ON: enable custom topic message transparent transform. Format: topic,Qos,retain,payload.
OFF:using predefined topic.default.
E.g.AT+MQTTPUBCUSEN=ON
2.5.63. AT+MQTTPUB
Function
Query/set predefined topic message to publish
Query
AT+MQTTPUB<CR>
<CR><LF>+OK=<pubnum,puben,topic,mode,symbol,Qos,retained,comn><CR><LF>
Set
AT+MQTTPUB=<pubnum,puben,topic,mode,symbol,Qos,retained,comn><CR>
<CR><LF>+OK<CR><LF>
Parameter
pubnum:1~16, each serial port support maximum 16 topics.
puben
ON: enable.this topic message can be published to server.
OFF:disable.default.
topic:0~128 characters,do not support wildcards,default /PubTopicn
mode
0: send to all topics.default.
1: send to specified topic.format:symbol,payload.
symbol: topic alias,maximum 16 characters,default same to pubnum.
Qos: 0,1,2.default 0.
retained
ON: enable
OFF:disable.default.
comn:serial port number.
E.g.AT+MQTTPUB=1,ON,/PubTopic1,0,1,0,OFF,1
2.5.64. AT+MQTTSUB
Function
Query/set topic message to subscribe
Query
AT+MQTTSUB<CR>