ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev. 11 Page 949 of 1039 2021-09-23
3.24.12.16. AT#MQSNCONN - Connect and log in the MQTT-SN Gateway
Performs the connection and login to the MQTT-SN Gateway
AT#MQSNCONN=<instanceNumber>,<clientID>
Set command performs network connection (using parameters set with
#MQSNCFG) and sends the CONNECT packet to the MQTT-SN Gateway.
Parameters:
Selects the client instance. The
number of available clients is
obtained with the test command.
To know maxClients value use
test command.
Client identifier. Identifies each
MQTT-SN client that connects to
the MQTT-SN Gateway.
Maximum length is 23.
A URC message in the following format is sent to notify user about
asynchronous disconnect:
#MQSNCONN: <instanceNumber>,DISCONNECT
Where, <instanceNumber> is the client instance of the MQTT-SN
client disconnected.