getDeviceHistory
Makes a request to the server to get the history of a device.
Parameters
acl_id
: theacp_id
of the device to subscribe tostart
: the start time of the history to getend
: the end time of the history to get
Returns
The hook returns the following:
data
: the history of the deviceloading
: whether the request is loadingerror
: any error that occurred