LoomSerialSensor class

Abstract root for Serial/UART sensor modules.

Base classes

class LoomSensor
Abstract root of Loom sensor modules hierarchy.

Derived classes

class Loom_K30
K30 CO2 sensor module.

CONSTRUCTORS / DESTRUCTOR

LoomSerialSensor(LoomManager* Manager, const char* module_name, const LoomModule::Type module_type, const uint8_t num_samples)
Constructor.
~LoomSerialSensor() virtual
Destructor.

SETTERS

void set_serial(Stream* stream)
Set the sensor's serial stream.

Function documentation

LoomSerialSensor::LoomSerialSensor(LoomManager* Manager, const char* module_name, const LoomModule::Type module_type, const uint8_t num_samples)

Constructor.

Parameters
Manager
module_name in Name of the module (provided by derived classes)
module_type in Type of the module (provided by derived classes)
num_samples in The number of samples to take and average

void LoomSerialSensor::set_serial(Stream* stream)

Set the sensor's serial stream.

Parameters
stream in A serial stream to read sensor data from