Smart Machine Smart Decision
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual 24 / 41
ex>,<req_length> >
<input data here>
OK
b)If failed:
+CMQTTUNSUBTOPIC: <client_index>,<err>
ERROR
c)If failed:
ERROR
Defined Values
A numeric parameter that identifies a client. The range of permitted
values is 0 to 1.
<req_length>
The length of input topic data. The publish message topic should be
UTF-encoded string. The range is from 1 to 1024 bytes.
<err>
The result code: 0 is success. Other values are failure. Please refer
to chapter 2.3.1.
2.2.16 AT+CMQTTUNSUB Unsubscribe a message to server
AT+CMQTTUNSUB is used to unsubscribe 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=?
Response
+CMQTTUNSUB (0-1),(0-1024),(0-1)
OK
Write Command
/* unsubscribe one or more topics which input
by AT+CMQTTUNSUBTOPIC*/
AT+CMQTTUNSUB=<client_index>,<du
p>
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: