ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 513 of 545 2020-04-15
3.22.4. AT#MQWCFG - Configure MQTT Last Will and Testament
This command sets Last Will and Testament for the selected MQTT client.
AT#MQWCFG=<instanceNumber>,<willFlag>[,<willRetain>,<willQos>,<willTopic>,<willMsg>]
Parameters:
selects the client instance. The list of available
clients is obtained with AT#MQEN? or the read
command.
client instance range. To know maxClients value
use test command
selects whether the client needs to specify a Last
Will and Testament. If set to 0, this is the last
parameter to be set.
the client does not need to specify a Last Will and Testament
the client needs to specify a Last Will and Testament
selects whether the Last Will message needs to be
retained by the server
the Last Will message does not need to be retained by the
server
the Last Will message needs to be retained by the server
Quality of Service of the Last Will message
Topic to publish the Last Will message to. Unused.
Last Will message. Unused.
AT#MQWCFG?
Read command returns the Last Will and Testament (if any) of all active MQTT clients in the format:
#MQWCFG:<instanceNumber>,<willFlag>[,<willRetain>,<willQos>,<willTopic>, <willMsg>]
AT#MQWCFG=?
Test command reports the available range of values for parameters.