Copyright © Neoway Technology Co., Ltd
Topicname must be marked by quotation marks.
15.5 Unsubscription: +MQTTUNSUB
AT+MQTTUNSUB=<”topicname”><CR>
<”topicname”>: Topic to unsubscribe to, the parameter must be marked by
quotation marks.
AT+MQTTUNSUB="lixytopic"
OK
Topicname must be marked by quotation marks.
15.6 Topic Publish: +MQTTPUB
AT+MQTTPUB=<retained>,<qos>,<”topicname”>,<message><CR>
<Retained>: Retain mark
<Qos>: Quality of service
<”topicname”>: Topic, the parameter must be marked by quotation marks.
<Message>: Message
AT+MQTTPUB=0,1,"lixytopic",12345
OK
The topic is published successfully.
AT+MQTTPUB=0,2,"lixytopic",12345
ERROR
The server does not support QoS=2.
After the command times out, the
device disconnects to the MQTT
server. Developers need to reconnect
manually.
Topicname must be marked by quotation marks.