At+Mqttpub; At+Mqttsub - USR IOT Cortex-M7 Series At Command Manual

Serial to ethernet device server
Table of Contents

Advertisement

<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>
Your TrustWorthy Industrial IoT Partner
34
AT command set
www.pusr.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Cortex-M7 Series and is the answer not in the manual?

Related Products for USR IOT Cortex-M7 Series

This manual is also suitable for:

Usr-n510Usr-n520Usr-n540Usr-n580

Table of Contents