EasyManuals Logo

SimCom SIM7600 Series Command Manual

SimCom SIM7600 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 #23 background imageLoading...
Page #23 background image
Smart Machine Smart Decision
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual 22 / 41
<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 publish message topic should be
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
<err>
The result code: 0 is success. Other values are failure. Please refer
to chapter 2.3.1.
2.2.14 AT+CMQTTSUB Subscribe a message to server
AT+CMQTTSUB is used to subscribe a message to MQTT server.
NOTE: The topic will be clean after execute AT+CMQTTSUB.
AT+CMQTTSUB Subscribe a message to server
Test Command
AT+CMQTTSUB=?
Response
+CMQTTSUB (0-1),(0-1024),(0-2),(0-1)
OK
Write Command
/* subscribe one or more topics which input
by AT+CMQTTSUBTOPIC*/
AT+CMQTTSUB=<client_index>[,<dup>
]
Response
a)If successfully:
OK
+CMQTTSUB: <client_index>,0
b)If failed:
OK
+CMQTTSUB: <client_index>,<err>
c)If failed:
+CMQTTSUB: <client_index>,<err>
ERROR
d)If failed:
ERROR
Write Command
/* subcribe one topic*/
AT+CMQTTSUB=<client_index>,<reqLe
ngth>,<qos>[,<dup>]
Response
a)If successfully:
>
<input data here>
OK

Table of Contents

Other manuals for SimCom SIM7600 Series

Questions and Answers:

Question and Answer IconNeed help?

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

SimCom SIM7600 Series Specifications

General IconGeneral
BrandSimCom
ModelSIM7600 Series
CategoryControl Unit
LanguageEnglish

Related product manuals