A device.
The cluster ID.
The command. Only LibertasClusterCmd.WRITE, LibertasClusterCmd.REPORT, LibertasClusterCmd.WRITE_UNDIVIDED, LibertasClusterCmd.WRITE_NO_RSP, LibertasClusterCmd.READ_RSP, LibertasClusterCmd.NA are allowed.
Attributes map, or array of attribute ID if cmd is LibertasClusterCmd.READ .
Optional
exclude: numberOptional. The node that shall not be updated. It shall only be used with virtual device node.
Optional
Optional
target: numberOptional. It shall only be used with virtual device node. The target of LibertasClusterCmd.READ_RSP.
Optional
Optional
seq: numberOptional. It shall only be used with virtual device node. The sequenc number of LibertasClusterCmd.READ_RSP.
Optional
The value of all arguments are upto access and permission check. Error may be raised. LibertasClusterCmd.READ_RSP is treated differently. First, only "volatile" attributes shall be updated. All other attribytes are already cached. If there is no "volatile" attributes, an empty map can be supplied. Secondly, target and seq arguments only applys to LibertasClusterCmd.READ_RSP command, the values shall be from the original event with LibertasClusterCmd.READ command.
If cmd is LibertasClusterCmd.NA, the attribute values are updated internally without broadcasting to bound endpoints. LibertasClusterCmd.NA is used to update volatile attributes in case an incoming event changed the attribute. For example, a "step" command will change the current level of a "Level Control" device. As a result, the "Level" attribute shall also be changed internally. However, if the Thing-APp engine doesn't maintain an attribute cache, it is not necessary to perform this update.
Generated using TypeDoc
Set the attributes of the remote device.