9.10.1.3 +MQTTSUB

This is used to subscribe to an MQTT topic.

Security – Default Security for the command is: GGGG

Table 9-65. Command Syntax

Command

Description

Security

AT+MQTTSUB=<TOPIC_NAME>,<MAX_QOS>

Subscribe to a topic

GGGG

Table 9-66. Command Parameter Syntax

Parameter Name

Type

Description

<TOPIC_NAME>

String

Topic name

<MAX_QOS>

Integer

Maximum QoS
  • 0 – QoS 0
  • 1 – QoS 1
  • 2 – QoS 2