Smart Machine Smart Decision
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual 18 / 41
OK
Write Command
AT+CMQTTDISC=<client_index>,<time
out>
Response
a)If connect successfully:
+CMQTTDISC: <client_index>,0
OK
b)If connect successfully:
OK
+CMQTTDISC: <client_index>,0
c)
If failed:
OK
+CMQTTDISC: <client_index>,<err>
d)If failed:
ERROR
e)If failed:
+CMQTTDISC: <client_index>,<err>
ERROR
Defined Values
<client_index>
A numeric parameter that identifies a client. The range of permitted
values is 0 to 1.
<timeout>
The timeout value for disconnection. The unit is second. The range
is 60s to 180s. The default value is 0s (not set the timeout value).
<disc_state>
1 - disconnection
0 - connection
<err>
The result code: 0 is success. Other values are failure. Please refer
to chapter 2.3.1.
2.2.10 AT+CMQTTTOPIC Input the topic of publish message
AT+CMQTTTOPIC is used to input the topic of a publish message.
NOTE: The topic will be clean after execute AT+CMQTTPUB.
AT+CMQTTTOPIC Input the publish message topic
Test Command
Response
+CMQTTTOPIC: (0-1),(1-1024)