User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
26Lightweight M2M
Page 315 of 401
26.1.7.2Syntax
Type Syntax Response Example
Set AT+ULWM2MWRITE=<JSON>[,
<mode>]
OK AT+ULWM2MWRITE="{\"bn\":\"/1/1/
\",\"e\":[{\"n\":\"1\",\"v\":1000}]}"
OK
Test AT+ULWM2MWRITE=? +ULWM2MWRITE: "JSON"
OK
+ULWM2MWRITE: "JSON"
OK
26.1.7.3Defined values
Parameter Type Description
<JSON> String JSON-formatted LwM2M resource or object instance; for more details, Lightweight
Machine to Machine Technical Specification [133]
<mode> Number Allowed values:
0 (default value): partial write that changes only resources given
1: replace write, overwriting multi-instance resources with the array passed in JSON
26.1.7.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.8Read from LwM2M object +ULWM2MREAD
+ULWM2MREAD
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.8.1Description
Displays the value of a LwM2M object, object instance, or resource.
26.1.8.2Syntax
Type Syntax Response Example
Set AT+ULWM2MREAD=<URI> +ULWM2MREAD: <JSON>
OK
AT+ULWM2MREAD="/1/1/1"
+ULWM2MREAD: {"bn":"/1/1/1/","e":
[{"n":"1","v":1000}]}
OK
Test AT+ULWM2MREAD=? +ULWM2MREAD: "URI"
OK
+ULWM2MREAD: "URI"
OK
26.1.8.3Defined values
Parameter Type Description
<URI> String Uniform Resource Identifier (URI) to existing object
<JSON> String JSON-formatted LwM2M resource or object instance; for more details, Lightweight
Machine to Machine Technical Specification [133]. The maximum length is:
SARA-R4 - 1024 characters
If the returned JSON length exceeds the parameter maximum length an error result
code is issued.
26.1.8.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.