The main class to use the main processor (MCU) as a sensor.
- class Sensor
- The "Sensor" class is used for all sensor-level operations - waking, sleeping, and taking measurements.
Constructors, destructors, conversion operators
ProcessorStats(const char* version) explicit
Construct a new Processor Stats object.
The version of the MCU, if applicable.
Need to know the Mayfly version because the battery resistor depends on it
StringgetSensorLocation(void ) override
Get the pin or connection location between the mcu and the sensor.
|Returns||String Text describing how the sensor is attached to the mcu.|
This returns the processor name as read from the compiler variable.
booladdSingleMeasurementResult(void ) override
Get the results from a single measurement.
|Returns||bool True if the function completed successfully.|
This asks the sensor for a new result, verifies that it passes sanity range checks, and then adds the value to the result array.