N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
101
15.7 Disconnecting to the MQTT Server:
+MQTTDISCONN
Description
To disconnect to the MQTT server and release resources
Format
AT+MQTTDISCONN<CR>
Parameter
N/A
Return Value
<CR><LF>OK<CR><LF>
Example
AT+ MQTTDISCONN
OK
Disconnect to the MQTT server.
Remarks
The device disconnects to the MQTT server proactively and releases the MQTT
resources. To publish messages after disconnecting, set up the connection again.
15.8 Receiving Topic Content: +MQTTSUB
Description
To receive the topic content sent by the server.
Format
+MQTTSUB=<message_id>,<”topicname”>,<message_len>,<message><CR>
Parameter
<message_id>: Message ID
<”topicname”>: Topic name
<message_len>: The length of the data received
<message>: Data received, end with 0x0d 0x0a; developers can determine the end
according to the <message_len>.
Return Value
See the Example
Example
+MQTTSUB:2,"lixytopic",5,12345
Receive messages published by
the topic subscribed to.
Remarks
Topicname must be marked by quotation marks.
15.9 Querying MQTT Connection Status: +MQTTSTATE
Description
To query the status of the MQTT connection.
Содержание N11 V2
Страница 1: ...N11 V2 AT Command Manual Issue 1 0 Date 2018 10 19 Neoway Product Document...
Страница 15: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 7 OK Remarks The default status setting is 7...
Страница 129: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 121 not support proactive time issuing...
Страница 134: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 126...