N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
98
15 MQTT Command
15.1 User Parameter Settings: +MQTTCONNPARAM
Description
To set ID, user name, and password.
Format
AT+MQTTCONNPARAM=<”clientID”>,<”username”>,<”password”><CR>
Parameter
<”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.
Return Value
<CR><LF>OK<CR><LF>
Example
AT+MQTTCONNPARAM="23342423b","lixytest/thing01","
0lSoY/eYnlSqUeAsbAKKQ/ACmipZwEw9H7Ff0h1kOps="
OK
Parameters are set
successfully.
Remarks
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
Description
To set will parameters
Format
AT+MQTTWILLPARAM=<retained>,<qos>,<”topicname”>,<message><CR>
Parameter
<Retained>: Retain mark
<Qos>: Quality of service
<”topicname”>: Will topic, the parameter must be marked by quotation marks.
<Message>: Will Message
Return Value
<CR><LF>OK<CR><LF>
Example
AT+MQTTWILLPARAM=0,1,"lixytopic",byby
OK
The will is set successfully.
Содержание 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...