ezeio2:expref:ds

This is an old revision of the document!


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
DVCSTAT_BATTVOLT Battery/supply voltage in mV
DVCSTAT_SIGNAL Signal level, typically 0-100%
DVCSTAT_COMMCOUNT Comm count, typically count of valid messages
DVCSTAT_COMMERR Comm error count, typically number of failed communication attempts
DVCSTAT_LASTCOMM 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.

  • ezeio2/expref/ds.1569370860.txt.gz
  • Last modified: 2019-09-25 00:21
  • by andreh