User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
25MQTT
Page 304 of 401
25.5Save/Restore MQTT profile from NVM +UMQTTNV
+UMQTTNV
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
full No NVM No - +CME Error
25.5.1Description
Either saves all of the MQTT client profile parameters to NVM (non-volatile memory) or sets all of the MQTT
client profile parameters to either factory-programmed or non-volatile stored values.
For the complete list of parameters that can be stored in the NVM, see the +UMQTT AT command.
25.5.2Syntax
Type Syntax Response Example
Set AT+UMQTTNV=<NVM_mode> [+UMQTTNV: <NVM_mode>,
<result>]
OK
AT+UMQTTNV=2
+UMQTTNV: 2,1
OK
Test AT+UMQTTNV=? +UMQTTNV: (list of <NVM_mode>s)
OK
+UMQTTNV: (0-2)
OK
25.5.3Defined values
Parameter Type Description
<NVM_mode> Number Operation to set or save the MQTT client profile parameters as follows:
0: restore MQTT client profile parameters to the factory-programmed setting
1: set MQTT client profile parameters to values previously stored in the NVM
2: store current MQTT client profile parameters to the NVM
<result> Number Operation result:
0: failure
1: success
25.6MQTT command +UMQTTC
+UMQTTC
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 Yes No No < 120 s +CME Error
25.6.1Description
Triggers the MQTT actions corresponding to the <op_code> parameter. The final result code indicates if
sending the command request to the MQTT process was successful or not.
The +UUMQTTC URC provides the result of the requested action from the MQTT broker. In addition, the
+UUMQTTC URC also provides notification that unread messages are available from the MQTT server. The
+UUMQTTC URC is by default enabled.
SARA-R410M-63B / SARA-R410M-73B / SARA-R410M-83B
The +UUMQTTC: 0,100 URC is notified when the MQTT broker releases the connection after a period of
inactivity (timeout).
The +UUMQTTC: 0,101 URC is notified when the network connection is lost.
SARA-R410M-02B / SARA-R410M-52B / SARA-R412M / SARA-N4
The +UUMQTTC URC provides the result only for login and subscribe.