9.10.1.8 +MQTTPROPTX

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

Any defined and selected properties are added to transmitted MQTT packets. Only properties applicable to the MQTT packet type are added. Properties must be selected via the 9.10.1.10 +MQTTPROPTXS command before they are included.
Note: Not all properties listed below may be available in any implementation of this command set.

User property (38) supports multiple entries in the form of key/value pairs. If a key/value pair is specified for the command it will be added, if only a key is specified it will be removed.

Security – Default Security for the command is: GGGG

Table 9-75. Command Syntax

Command

Description

Security

AT+MQTTPROPTX

Query all configuration elements

GGGG

AT+MQTTPROPTX=<ID>

Query a single element

GGGG

AT+MQTTPROPTX=<ID>,<VAL>

Set a single element

GGGG

AT+MQTTPROPTX=<ID>,<KEY>,<VALS>

Set a single key/value pair

GGGG

Table 9-76. Command Parameter Syntax

Parameter Name

Type

Description

<ID>

Integer

Parameter ID number

<VAL>

Integer String Byte Array

Parameter value

<KEY>

String

Parameter key

<VALS>

String

Parameter value

Table 9-77. Response Syntax

Response

Description

+MQTTPROPTX:<ID>,<VAL>

Read response

+MQTTPROPTX:<ID>,<KEY>,<VALS>

Read response (key/value)

Table 9-78. Response Element Syntax

Element Name

Type

Description

<ID>

Integer

Parameter ID number

<VAL>

Any

Parameter value

<KEY>

String

Parameter key

<VALS>

String

Parameter value

Table 9-79. Configuration Parameters

ID

Name

Type

Description

Security

17

<SESSION_EXPIRY_INTERVAL>

Integer

Session Expiry Interval

GGGG

38

<USER_PROP>

Byte Array

User Property

This is a multiple value parameter with the range 38.0-38.9

GGGG