User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
25MQTT
Page 301 of 401
25.2.4Notes
The information text response to the read command does not display the password.
Some network operators do not allow secure MQTT. In this case the AT+UMQTTC=1 command (MQTT
login) will return a failure response by means of the +UUMQTTC URC after an TLS timeout of 30 s.
SARA-R410M / SARA-R412M / SARA-N4
For individual MQTT parameter fields, especially the string fields (double-quote delimited), the
continuation symbol + indicates whether the current display is a continuation from a previous display or
whether the current display has more information to be displayed.
If the continuation symbol precedes the first double-quote, e.g., Topic: +"is continuing from previous
display", then this MQTT parameter field continues from a previous display command. If the continuation
symbol trails the last double-quote, e.g., Topic: "This message won't fit within the limita"+, then it
indicates that more information from this MQTT parameter remains to be displayed. If the continuation
symbol appears on both sides of the double-quotes, then this message is the continuation of a previous
display (and requires future displays to complete), e.g., Topic: +"is in the middle of a long messa"+.
When displaying all of the MQTT client profile parameters, (AT+UMQTT?), only the non-default string
parameters are displayed. Thus, if will message, will topic, server name, IP address, username, or
password are not entered, they will not be displayed.
Only IPv4 is supported.
Client subscriptions and delivered messages across disconnects by either the server or the client <clean_
session>=0 is not supported.
<op_code>=2 (MQTT server name) and <op_code>=3 (MQTT IP address) are equivalent, when broker
connection is established the server name is transformed into the IP address.
After logout (AT+UMQTTC=0), MQTT settings need to be re-set individually or restored from the NVM
with the AT+UMQTTNV=1 command to login again.
If <op_code>=11 (MQTT secure) and <MQTT_secure>=1 (MQTT TLS encryption enabled), the
<USECMNG_profile> parameter is mandatory.
SARA-R410M-63B / SARA-R410M-73B / SARA-R410M-83B
The +UUMQTT URC is not supported.
SARA-R410M-02B / SARA-R410M-52B / SARA-R412M / SARA-N4
The profile parameters MQTT will QoS value (<op_code>=6), MQTT will retain (<op_code>=7), MQTT
will topic (<op_code>=8), MQTT will message (<op_code>=9) and MQTT terse/verbose mode (<op_
code>=14) are provided in the read response for informational purposes. They cannot be set using the
+UMQTT set command:
o The MQTT will QoS value (<op_code>=6), MQTT will retain (<op_code>=7) and MQTT will topic
(<op_code>=8) are set with the +UMQTTWTOPIC AT command.
o The MQTT will message (<op_code>=9) is set with the +UMQTTWMSG AT command.
o The MQTT terse/verbose mode (<op_code>=14) is set with the +UMQTTC AT command.
SARA-R410M-02B
The secure MQTT (TLS) (<op_code>=11) is not supported by SARA-R410M-02B-00.
25.3MQTT will topic configuration +UMQTTWTOPIC
+UMQTTWTOPIC
SARA-R410M-02B SARA-R410M-52B SARA-R410M-63B SARA-R410M-73B SARA-R410M-83B
SARA-R412M
Modules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial No No No - +CME Error
25.3.1Description
Configures the MQTT profile parameters related to the MQTT's will message ("Last Will and Testament"). In
the MQTT protocol, an MQTT client can configure a will message to be broadcast from the MQTT message
broker (MQTT server) whenever the server disconnects the MQTT client outside of a specific MQTT client
disconnect request. Upon disconnect, the MQTT server will publish the will message for a given connection
to the specified will topic name, with the specified Will QoS (Quality of Service). The will retain flag indicates