Smart Machine Smart Decision
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual 23 / 41
+CMQTTSUB: <client_index>,<err>
b)If failed:
OK
+CMQTTSUB: <client_index>,<err>
c)If failed:
+CMQTTSUB: <client_index>,<err>
ERROR
d)If failed:
ERROR
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 topic data. The message
UTF-encoded string. The range is from 1 to 1024 bytes.
<qos>
The publish message’s qos. The range is from 0 to 2.
0 – at most once
1 – at least once
2 – exactly once
The dup flag to the message. The value is 0 or 1. The default value
is 0. The flag is set when the client or server attempts to re-deliver
a message.
The result code: 0 is success. Other values are failure. Please refer
to chapter 2.3.1.
2.2.15 AT+CMQTTUNSUBTOPIC Input the topic of unsubscribe message
AT+CMQTTUNSUBTOPIC is used to input the topic of a unsubscribe message.
NOTE: The topic will be clean after execute AT+CMQTTUNSUB.
AT+CMQTTUNSUBTOPIC Input a unsubscribe message topic
Test Command
AT+CMQTTUNSUBTOPIC=?
Response
+CMQTTUNSUBTOPIC: (0-1),(1-1024)
OK
Write Command
AT+CMQTTUNSUBTOPIC=<client_ind
Response
a)If successfully: