ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 521 of 545 2020-04-15
3.22.10. AT#MQPUBS - Publish ASCII String
This command publishes an ASCII string to the specified MQTT topic.
AT#MQPUBS=<instanceNumber>,<topic>,<retain>,<qos>,<message>
Parameters:
selects the client instance to activate or deactivate
client instance range. To know maxClients value
use test command
specifies if the broker must retain this message or
not
specifies the Quality of Service of this message
message to publish on the topic. Maximum 140
characters, printable ASCII.
AT#MQPUBS=?
Test command reports the available range of values for parameters.
AT#MQPUBS=1,myTopic,0,0,myMessage
OK
Test command
AT#MQPUBS=?
#MQPUBS: (1-maxClients),,(0-1),(0-2),
OK