9.10.1.1 +MQTTC

This command is used to read or set the MQTT configuration. This command is a configuration command which supports setting and getting parameter values. The behaviour of configuration commands is described in general in the Configuration Commands section.

Security – Default Security for the command is: GGGG

Table 9-63. Command Syntax

Command

Description

Security

AT+MQTTC

Query all configuration elements

GGGG

AT+MQTTC=<ID>

Query a single element

GGGG

AT+MQTTC=<ID>,<VAL>

Set a single element

GGGG

Table 9-64. Command Parameter Syntax

Parameter Name

Type

Description

<ID>

Integer

Parameter ID number

<VAL>

Integer String Byte Array

Parameter value

Table 9-65. Response Syntax

Response

Description

+MQTTC:<ID>,<VAL>

Read response

Table 9-66. Response Element Syntax

Element Name

Type

Description

<ID>

Integer

Parameter ID number

<VAL>

Any

Parameter value

Table 9-67. Configuration Parameters

ID

Name

Type

Description

Security

1

<BROKER_ADDR>

String

Broker domain name or IPv4 address Maximum length is 64

GGGG

2

<BROKER_PORT>

Integer

Broker listening TCP port

GGGG

3

<CLIENT_ID>

String

MQTT client ID Maximum length is 23

GGGG

4

<USERNAME>

String

Username

Maximum length is 128

GGGG

5

<PASSWORD>

String

Password

Maximum length is 256

GGGG

6

<KEEP_ALIVE>

Integer

Keep alive time (in seconds)

GGGG

7

<TLS_CONF>

Integer

TLS configuration index (see +TLSC)

GGGG

8

<PROTO_VER>

Integer

MQTT protocol version, either 3 or 5
  • 3 – V3.1.1
  • 5 – V5

GGGG

9<READ_THRESHOLD>Unsigned Integer

Subscription read threshold

Unsigned 16-bit value

GGGG

10<SERVER_SELECT>Unsigned Integer

Select server

0 – Other

1 – Azure

Azure

GGGG