lwm2m.oir.read action

The lwm2m.oir.read trigger action will retrieve the value of a resource or values of all the resources associated with an object.

Action

To access the lwm2m.oir.read trigger action:

  • In the Adding trigger screen, under Lwm2m click and drag the lwm2m.oir.read to the canvas.

Canvas

When dragged onto the canvas, the appearance of the action is a rectangle with two routing points.

The left routing point (red) is the failure route. This route will be taken if there is an error during execution.

The right routing point (green) is the success route. This route will be taken if action executes successfully.

Form

Parameters

Name Type Required Description
Thing key String Yes The thing key of the LWM2M device.
Object String Yes Click on the Object drop-down and then select the object that contains the resource or resources to be read.
Instance ID String The Instance ID of the object that contains the resource or resources to be read.
Resource String The Resource that needs to be read.
Encoding Integer The encoding that needs to be done.
Return last known value on timeout Boolean   If set to true, it will return the last known value on timeout.

If the device supports queue mode, the read will still be queued for the future, but the last known value will be returned (flag isLastKnownValue will be returned).