Smart Machine Smart Decision
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual 15 / 41
ERROR
Defined Values
<client_index>
A numeric parameter that identifies a client. The range of permitted
The length of input topic. The will topic should be UTF-encoded
string. The range is from 1 to 1024 bytes.
<err>
The result code, please refer to chapter 2.3.1
2.2.7 AT+CMQTTWILLMSG Input the will message
AT+CMQTTWILLMSG is used to input the message body of will message.
AT+CMQTTWILLTOPIC Input the will message
Test Command
AT+CMQTTWILLMSG=?
Response
+CMQTTWILLMSG: (0-1),(1-10240),(0-2)
Write Command
AT+CMQTTWILLMSG=<client_index>,
<req_length>,<qos>
Response
a)If successfully:
>
<input data here>
OK
b)If failed:
+CMQTTWILLMSG: <client_index>,<err>
ERROR
c)If failed:
Defined Values
<client_index>
A
numeric parameter that identifies a client. The range of
permitted values is 0 to 1.
<req_length>
The length of input data. The will message
should be
UTF-encoded string. The range is from 1 to 10240 bytes.
<qos>
The qos value of the will message. The range is from 0 to 2.
<err>
The result code: 0 is success. Other values are failure. Please
refer to chapter 2.3.1