LOGGER  Logger
Data Logging using ESP8266
Public Member Functions | Public Attributes | List of all members
Sensor Class Reference

Public Member Functions

void print (Print *pPrinter, FormatType_t formatType=FormatForConsole)
 

Public Attributes

uint8_t uniqueID [8]
 8 bytes of unique ID
 
char name [16]
 user facing sensor name
 
bool inUse
 true if sensor is currently in use
 
uint8_t id
 index to this sensor
 
SensorInterfaceID_t interface
 how the sensor connects
 
SensorTypeID_t sensorType
 what kind of sensor
 
SensorDatatypeID_t datatype
 how to display the value
 
uint8_t bitOffset
 number of bits from start of data.
 
uint8_t bitsOfData
 number of bits to store for a reading
 
bool isSigned
 the reading is a signed number
 
uint8_t decimalPlaces
 fixed point places
 
uint8_t sensorSpecific
 See notes on sensor type.
 
pSENSOR_READ_CALLBACK pReader
 function to read sensor
 

Detailed Description

Description of all sensors that have been found.

The unique ID for onewire sensors is the serial number of the device.

Member Function Documentation

void Sensor::print ( Print *  pPrinter,
FormatType_t  formatType = FormatForConsole 
)

Print sensor information

Parameters
pPrinterwhere to emit output
formatTypeoutputformat

The documentation for this class was generated from the following file: