Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ezeio2:expref:ds [2019-09-02 18:48] – andreh | ezeio2:expref:ds [2021-02-24 18:55] (current) – [ds( deviceno, subject )] andreh | ||
---|---|---|---|
Line 9: | Line 9: | ||
< | < | ||
- | This function returns the current status of a device. | + | This function returns the current status of a device |
=== Parameters === | === Parameters === | ||
- | | '' | + | | '' |
| '' | | '' | ||
^ Subject ^ Description ^ | ^ Subject ^ Description ^ | ||
- | | 1 | Battery/ | + | | DVCSTAT_BATTVOLT |
- | | 2 | Signal level, typically 0-100% | | + | | DVCSTAT_SIGNAL |
- | | 3 | Comm count, typically count of valid messages | | + | | DVCSTAT_COMMCOUNT |
- | | 4 | Comm error count, typically number of failed communication attempts | | + | | DVCSTAT_COMMERR |
- | | 5 | Last comm, EPOCH timestamp of last successful communication | | + | | DVCSTAT_LASTCOMM |
+ | | DVCSTAT_COMMSTAT | Device communication status (0-7, where 0=unknown, 1=error, 2, | ||
+ | | DVCSTAT_OPSTAT | Device operational status (0-3, where 0=unknown, 1=error, 2=warning, 3=nominal) | | ||
+ | | DVCSTAT_APPSTAT | Device application status (0-7, where 0=unknown, 1=error, 2, | ||
+ | | DVCSTAT_STAT | Aggregated status (0-3, 0=unknown, 1=error, 2=warning, 3=ok) | | ||
=== Return value === | === Return value === | ||
Line 29: | Line 33: | ||
=== Example usage === | === Example usage === | ||
- | < | + | < |
Returns the communication error count from device 2. | Returns the communication error count from device 2. | ||