<TLS>
Default: 0. Values range: 0 → unsecured; 1 → autodetect; 2
→ TLS
<username>
Default: none. User Name
<passwd>
Default: none. Passwd
<userID>
Default: nv_model used during MQTT communications
<keep_alive>
Default: 60 seconds
<retry>
Default: 15 seconds
<lastWill_QoS>
Default: 0. Last action to be executed by the broker when the
node disappears without a disconnect procedure
<lastWill_topic>
Default: None. Last Will Topic
<lastWill_message>
Default: None. Published on the Last Will Topic
Result:
AT-S.On:<id>:<session>
<id>
Specifies the MQTT client identifier
<session>
0 (new session) or 1 (session restored)
6.57
AT+S.MQTTPUB
To publish a message to an MQTT broker
Usage:
AT+S.MQTTPUB=0,<topic>,[<QoS>],[<retained_flag>],<len><cr>{data}
Parameters:
<topic>
Topic where the message is published
<QoS>
Default: 0. Values Range: 0 → at most once delivery; 1 → at
least one delivery; 2 → exactly one delivery
<retained_flag>
Default: 0. Possible values: 0 → do not retain, 1 → retain
<len>
MQTT message length
6.58
AT+S.MQTTDISC
To disconnect from an MQTT broker.
Usage:
AT+S.MQTTDISC=0<cr>
Parameters:
UM2114
AT+S.MQTTPUB
UM2114
-
Rev 3
page 36/66