Smart Machine Smart Decision
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual 21 / 41
0 – at most once
1 – at least once
2 – exactly once
<pub_timeout>
The publishing timeout interval value. Since the client publish a
message to server, it will report failed if the client receive no
response from server after the timeout value seconds. The range is
<ratained>
The retain flag of the publish message. The value is 0 or 1. The
default value is 0.
When a client sends a PUBLISH to a server, if the retain flag is set
to 1, the server should hold on to the message after it has been
delivered to the current subscribers.
<dup>
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.
<err>
The result code: 0 is success. Other values are failure. Please refer
to chapter 2.3.1.
2.2.13 AT+CMQTTSUBTOPIC Input the topic of subscribe message
AT+CMQTTSUBTOPIC is used to input the topic of a subscribe message.
NOTE: The topic will be clean after execute AT+CMQTTSUB.
AT+CMQTTSUBTOPIC Input a subscribe message topic
Test Command
AT+CMQTTSUBTOPIC=?
Response
+CMQTTSUBTOPIC: (0-1),(1-1024)
Write Command
AT+CMQTTSUBTOPIC=<client_index>
,<req_length>,<qos>
Response
a)If successfully:
>
<input data here>
OK
b)If failed:
+CMQTTSUBTOPIC: <client_index>,<err>
ERROR
c)If failed:
Defined Values