4G_2G DTU Products Function
- 45 -
◼
Format:
◆
Query Operation:
AT+WEBSOCKET<CR>
+ok=<
ping,path,protocol
><CR><LF><CR><LF>
◆
Set Operation:
AT+WEBSOCKET=<
ping,path,protocol
><CR>
+ok<CR><LF><CR><LF>
◼
Parameter:
◆
ping: WebSocket ping time, unit: seconds, 0: Disable,depends on Server side to set or
disable.
◆
path: WebSocket Path header
◆
protocol: WebSocket protocol, depends on the server requirement.
2.4.2.33.
AT+MQTOPIC
◼
Function: Set/query MQTT topic content. Only valid for Socket A for MQTT mode, setting will
take effect after reset.
◼
Format:
◆
Query Operation:
AT+MQTOPIC<CR>
+ok=<
publish,subscribe
><CR><LF><CR><LF>
◆
Set Operation:
AT+MQTOPIC=
<publish,subscribe>
<CR>
+ok<CR><LF><CR><LF>
◼
Parameter:
◆
publish: publish topic
◆
subscribe: subscribe topic
2.4.2.34.
AT+MQLOGIN
◼
Function: Set/query MQTT login content. Only valid for Socket A for MQTT mode, setting will
take effect after reset.
◼
Format:
◆
Query Operation:
AT+MQLOGIN<CR>
+ok=
<user,password>
<CR><LF><CR><LF>
◆
Set Operation:
AT+MQLOGIN=
<user,password>
<CR>
+ok<CR><LF><CR><LF>
◼
Parameter:
◆
user: login user
◆
login: login password
2.4.2.35.
AT+MQID
◼
Function: Set/query MQTT login content. Only valid for Socket A for MQTT mode, setting will
take effect after reset.
◼
Format: