EasyManuals Logo

SimCom SIM7500 Series Command Manual

SimCom SIM7500 Series
41 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #21 background imageLoading...
Page #21 background image
Smart Machine Smart Decision
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual 20 / 41
c)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 message data. The publish message should be
UTF-encoded string. The range is from 1 to 10240 bytes.
<err>
The result code: 0 is success. Other values are failure. Please refer
to chapter 2.3.1.
2.2.12 AT+CMQTTPUB Publish a message to server
AT+CMQTTPUB is used to publish a message to MQTT server.
NOTE: The topic and payload will be clean after execute AT+CMQTTPUB.
AT+CMQTTPUB Publish a message to server
Test Command
AT+CMQTTPUB=?
Response
+CMQTTPUB (0-1),(0-2),(60-180),(0-1),(0-1)
OK
Write Command
AT+CMQTTPUB=<client_index>,<qos>,
<pub_timeout>[,<ratained> [,<dup>]]
Response
a)If successfully:
OK
+CMQTTPUB: <client_index>,0
b)If failed:
OK
+CMQTTPUB: <client_index>,<err>
c)If failed:
+CMQTTPUB: <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.
<qos>
The publish message’s qos. The range is from 0 to 2.

Table of Contents

Other manuals for SimCom SIM7500 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the SimCom SIM7500 Series and is the answer not in the manual?

SimCom SIM7500 Series Specifications

General IconGeneral
BrandSimCom
ModelSIM7500 Series
CategoryControl Unit
LanguageEnglish

Related product manuals