ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 522 of 545 2020-04-15
3.22.11. AT#MQREAD - Read Messages Received from the MQTT Broker
This command reads the message payload from the queue slot provided.
AT#MQREAD=<instanceNumber>,<mId>
After command line is terminated with <CR>, the module responds sending:
#MQREAD: <instanceNumber>,<topic>,<payload_len>,
then the module prompts the following characters sequence:
<less_than><less_than><less_than><carriage return><line feed> (IRA 60, 60, 60, 13, 10)
followed by the data
Parameters:
selects the client instance to activate or deactivate
client instance range. To know maxClients value
use test command
message slot Id to be read. The read operation will
free the slot resource.
UNCOLICITED MESSAGE:
#MQRING - Received data on subscribed topic
When a message is received on the subscribed topic, an URC message is sent to all AT
commands interfaces. There are 30 messages slots available for incoming messages, and
it is responsibility of the user to keep them empty by reading them with #MQREAD.
• If the message queue is full, and a new message arrives, the following
URC #MQRING: 0 is received.
• Otherwise, for normal messages, the URC format is:
#MQRING: <instanceNumber>,<mId>,<topic>,<len>
In the Unsolicited fields section are described the URC message parameters not described
in the previous sections.