|  Developer
Updated on January 3, 2022

hub.device.check

Connection type:

  • Requests actual values from device or checks reachable state of device.
Edit
Field Required Type Description
_id
+
string
Id of target device
check
-
string
Sync values with physical device or check status of device (reachable or not). Possible values: , . If this field is not defined than value and status should be checked.
items
-
array of strings
Ids of items which values need to check. If this field is not defined than all values should be checked.
Edit
Edit
Broadcast Description
Informs about check result
Edit
Edit
				
					{
    "id": "_ID_",
    "method": "hub.device.check",
    "params": {
        "_id":"asd89ujn234kjndfdsfkjn3",
        "check": "value"
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "method": "hub.device.check",
    "result": {}
}				
			
Edit
Code Message Data
-32600
Bad request, does not exist
rpc.params.notfound.
-32602
Value is not in valid range
rpc.params.range.invalid.
-32500
No device found!
ezlo.device.notfound
-32500
The device doesn't support checking values or status.
hub.device.check.unsupported