WE866E4-P AT Commands Reference Guide
80572ST10887A Rev. 0.0
112
2018-02-16
PRELIMINAR
Y
Synchronous Response
, describes the synchronous responses and remarks for MQTT Publish
command.
9.4.4 MQTT Subscribe
This command is used to subscribe to MQTT topic. Prior to issuing this command, user is
required to establish MQTT connection.
Command Syntax
AT+NMQTTSUBSCRIBE=<CID>,<QOS>,<Message ID>,<Topic Name>
Parameter Description
, describes the MQTT Subscribe parameters.
Response
Table 235 MQTT Publish Synchronous Response
Responses
Remarks
OK
Success.
ERROR
If parameter is not valid.
Table 236 MQTT Subscribe Parameters
Parameters Mandatory/Optional
Value
Description
CID
Mandatory
Value range:
0-15
Format:
Integer
Default value:
N/A
It specifies the connection ID returned
during the MQTT connect command.
QOS
Mandatory
Value range:
0-15
Format:
Integer
Default value:
N/A
It specifies the level of assurance to
delivery the application message.
Message ID Mandatory
Value range:
0-65535
Format:
Integer
Default value:
N/A
It specifies the message ID to be sent along
with message being published.
Topic Name Mandatory
Value range:
0-65535
Format:
String
Default value:
N/A
It identifies the endpoint to which payload
data is published.