This is an old revision of the document!
Device Status
ds( deviceno, subject )
Return the current status of a device.
Description
ds( deviceno, subject )
This function returns the current status of a device.
Parameters
deviceno | Device number (1 - 40) |
subject | Subject to request (see below) |
Subject | Description |
---|---|
1 | Battery/supply voltage in mV |
2 | Signal level, typically 0-100% |
3 | Comm count, typically count of valid messages |
4 | Comm error count, typically number of failed communication attempts |
5 | Last comm, EPOCH timestamp of last successful communication |
Return value
Returns the current status value of the subject requested.
Example usage
ds(2, 4)
Returns the communication error count from device 2.