AT+CMQTTTOPIC=?
Write Command
AT+CMQTTTOPIC=<client_index>,<re
q_length>
Defined Values
<client_index>
<req_length>
<err>
2.2.11 AT+CMQTTPAYLOAD Input the publish message
AT+CMQTTPAYLOAD is used to input the message body of a publish message.
NOTE: The payload will be clean after execute AT+CMQTTPUB.
AT+CMQTTPAYLOAD Input the publish message body
Test Command
AT+CMQTTPAYLOAD=?
Write Command
AT+CMQTTPAYLOAD=<client_index>,
<req_length>
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual
OK
Response
a)If successfully:
>
<input data here>
OK
b)If failed:
+CMQTTTOPIC: <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
+CMQTTPAYLOAD: (0-1),(1-10240)
OK
Response
a)If successfully:
>
<input data here>
OK
b)If failed:
+CMQTTPAYLOAD: <client_index>,<err>
ERROR
Smart Machine Smart Decision
19 / 41
Need help?
Do you have a question about the SIM7500 Series and is the answer not in the manual?
Questions and answers