ex>,<req_length>
Defined Values
<client_index>
<req_length>
<err>
2.2.16 AT+CMQTTUNSUB Unsubscribe a message to server
AT+CMQTTUNSUB is used to un subscribe a message to MQTT server .
NOTE: The topic will be clean after execute AT+CMQTTUNSUB.
AT+CMQTTSUB Subscribe a message to server
Test Command
AT+CMQTTUNSUB=?
Write Command
/*
unsubscribe one or more topics which input
by AT+CMQTTUNSUBTOPIC
AT+CMQTTUNSUB=<client_index>,<du
p>
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual
>
<input data here>
OK
b)If failed:
+CMQTTUNSUBTOPIC: <client_index>,<err>
ERROR
c)If failed:
ERROR
A numeric parameter that identifies a client. The range of permitted
values is 0 to 1.
The length of input topic data. The publish message topic should be
UTF-encoded string. The range is from 1 to 1024 bytes.
The result code: 0 is success. Other values are failure. Please refer
to chapter 2.3.1.
Response
+CMQTTUNSUB (0-1),(0-1024),(0-1)
OK
Response
a)If successfully:
OK
+CMQTTUNSUB: <client_index>,0
OK
*/
+CMQTTUNSUB: <client_index>,<err>
b)If failed:
OK
+CMQTTUNSUB: <client_index>,<err>
c)If failed:
Smart Machine Smart Decision
24 / 41
Need help?
Do you have a question about the SIM7500 Series and is the answer not in the manual?