User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
26Lightweight M2M
Page 312 of 401
26.1.2Load LwM2M object definition +ULWM2MADD
+ULWM2MADD
Modules SARA-R410M-02B SARA-R410M-52B SARA-R410M-63B SARA-R410M-73B SARA-R410M-83B
SARA-R412M
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No - -
26.1.2.1Description
Loads a LwM2M object into LwM2M objects table from a Lua definition file. Additional Lua definition files
can be stored into the file system by means of the +UDWNFILE AT command using "XLWM2M" tag (for more
details, see File tags).
26.1.2.2Syntax
Type Syntax Response Example
Set AT+ULWM2MADD=<filename> OK AT+ULWM2MADD="object_
location.lua"
OK
Test AT+ULWM2MADD=? +ULWM2MADD: "filename"
OK
+ULWM2MADD: "filename"
OK
26.1.2.3Defined values
Parameter Type Description
<filename> String Name of the Lua file defining an object to load. The directory is assumed to be /lua/
objects on alternate encrypted file system.
26.1.2.4Notes
SARA-R410M-02B / SARA-R410M-52B / SARA-R412M
The command is not supported by SARA-R410M-02B-00, SARA-R410M-02B-01, SARA-R410M-52B-00,
SARA-R410M-52B-01, SARA-R412M-02B-00 and SARA-R412M-02B-01.
26.1.3Remove LwM2M object definition +ULWM2MREMOVE
+ULWM2MREMOVE
Modules SARA-R410M-02B SARA-R410M-52B SARA-R410M-63B SARA-R410M-73B SARA-R410M-83B
SARA-R412M
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No - -
26.1.3.1Description
Deletes all instances of an object and removes the object definition from LwM2M objects table. The Lua file
is NOT deleted.
26.1.3.2Syntax
Type Syntax Response Example
Set AT+ULWM2MREMOVE=<object_
ID>
OK AT+ULWM2MREMOVE="/3300"
OK
Test AT+ULWM2MREMOVE=? +ULWM2MREMOVE: "Object Id"
OK
+ULWM2MREMOVE: "Object Id"
OK
26.1.3.3Defined values
Parameter Type Description
<object_id> String URI to an object ID for an object loaded into LwM2M objects table