Device Commands
Device commands can be used to group device resources in a single command.
The following extract combines the device resources for BinaryInput1 and BinaryInput2 in a single GET command for reading:
"deviceCommands": [
{
"name": "BinaryInputs",
"get": [
{
"index": "1",
"operation": "get",
"deviceResource": "BinaryInput1"
},
{
"index": "2",
"operation": "get",
"deviceResource": "BinaryInput2"
}
]
}
]
The following extract combines the device resources for DeviceResource1 and DeviceResource2 in a single GET and a single SET command for reading and writing:
"deviceCommands": [
{
"name": "GroupedResources",
"get": [
{
"deviceResource": "DeviceResource1"
},
{
"deviceResource": "DeviceResource2"
}],
"set": [
{
"deviceResource": "DeviceResource1"
},
{
"deviceResource": "DeviceResource2"
}]
}]