N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
102
Format
AT+MQTTSTATE?<CR>
Parameter
N/A
Return Value
+MQTTSTATE:0: Disconnected to the MQTT server
+MQTTSTATE:1: Connected to the MQTT server
Example
AT+MQTTSTATE?
+MQTTSTATE:1
OK
The device is connected to the
MQTT server.
Remarks
The device sends keepalive packets to the MQTT server by default. If the
server does not respond with ACK, the device automatically reconnects to the
server.
Developers can also send this command to check the connection status and
decide whether to reconnect automatically after detecting disconnection.
To reconnect manually, eMQTTDISCONN to release resources and
eMQTTDISCONN to set up a new connection.
15.10 Setting MQTT Mode: +MQTTMODE
Description
To set the mode of MQTT connection
Format
AT+MQTTMODE=<mode><CR>
Parameter
<Mode>: MQTT mode
0: MQTT
1: MQTT over TLS
Return Value
<CR><LF>OK<CR><LF>
Example
AT+IMQTTMODE=1
OK
Set
the
mode
of
MQTT
connection to MQTT over TLS
Remarks
By default, MQTT communication uses plain TCP connections.
To use MQTT over TLS, execute this command before authentication.
Содержание 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...