Data Sheet
Air602_AT Instruction User Manual
2.2.4 MQTT Instruction
2.2.4.1
Set up the MQTT server
:AT+MSERVER
• Function:Set the MQTT server IP address and port.
• Format(ASCII):
AT+MSERVER=<port>,<ipaddr><CR>
+OK<CR><LF><CR><LF>
• Parameter:
<port>: MQTT server port number, without double quotes
<ipaddr>: MQTT server IP address (Do not support domain name address), do not need to add double quotes
2.2.4.2
Set login account and password
:AT+MLOGIN
• Function: Set the MQTT username and password.
• Format(ASCII):
AT+MLOGIN=<user>,<password><CR>
+OK<CR><LF><CR><LF>
• Parameter:
<user>: Username, no double quotes
<password>: Password, no double quotes
Luat 59 /73 page
2.2.4.3 Set client id:AT+MID
• Function:Set the client id of the MQTT.
• Format(ASCII):