Copyright © Neoway Technology Co., Ltd
15 MQTT Command
15.1 User Parameter Settings: +MQTTCONNPARAM
To set ID, user name, and password.
AT+MQTTCONNPARAM=<”clientID”>,<”username”>,<”password”><CR>
<”clientID”>: Device ID, the parameter must be marked by quotation marks.
<”username”>: User name, the parameter must be marked by quotation marks.
<”password”>: Password, the parameter must be marked by quotation marks.
AT+MQTTCONNPARAM="23342423b","lixytest/thing01","
0lSoY/eYnlSqUeAsbAKKQ/ACmipZwEw9H7Ff0h1kOps="
OK
Parameters are set
successfully.
The parameters must be marked by quotation marks.
This command is applicable to V005A and later versions.
This command cannot be used together with Ali MQTT and SHADOW
commands.
15.2 Will Settings: +MQTTWILLPARAM
AT+MQTTWILLPARAM=<retained>,<qos>,<”topicname”>,<message><CR>
<Retained>: Retain mark
<Qos>: Quality of service
<”topicname”>: Will topic, the parameter must be marked by quotation marks.
<Message>: Will Message
AT+MQTTWILLPARAM=0,1,"lixytopic",byby
OK
The will is set successfully.