lwm2m.device.oir.read

The lwm2m.device.oir.read command is used to read an object, instance, or resource from a device.

TR50 Request
{
  "1": {
    "command": "lwm2m.device.oir.read",
    "params": {
      "thingKey": "mydevice",
      "objId": 27000,
      "instId": 0,
      "resId": 7,
      "encoding": 11542
    }
  }
} 

Request Parameters

Name Type Required Description
id String Yes* The id of the device.
thingId String The id of the Thing.
thingKey String The thingKey of the Thing.
esn String The ESN of the device.
iccid String The ICCID of the device.
imei String The IMEI of the device.
imsi String The IMSI of the device.
meid String The MEID of the device.
msisdn String The MSISDN of the device.
*One of the above fields must be used to identify the device.
objId Integer Yes The object ID.
instId Integer The instance ID.
resId Integer The resource ID.
resIdx Integer The resource instance ID.
encoding Integer

Message containing data must specify the payload encoding by using one of the supported data format. For more information on encoding, see Navigating Object browser.

If the command is sent successfully a success message and the selected value to read is returned. Otherwise, an error and error message will be returned.

TR50 Response
{
  "1": {
    "success": true,
    "params": {
      "result": {
        "27000": {
          "0": {
            "7": {
              "value": {
                "instId": 1,
                "objId": 1
              }
            }
          }
        }
      }
    }
  }
}

Response Parameters

Name Type Description
result Array The object structure of the value to read. The structure will vary by selected device and specified parameters.