Loom_K30 class

K30 CO2 sensor module.

Base classes

class LoomSerialSensor
Abstract root for Serial/UART sensor modules.

CONSTRUCTORS / DESTRUCTOR

Loom_K30(LoomManager* manager, const char* module_name = "K30", int num_samples = 1)
Constructor.
~Loom_K30() defaulted virtual
Destructor.

OPERATION

void measure() override
Take any relevant measurements.
void package(JsonObject json) override
Package a modules measurements or state.

Function documentation

Loom_K30::Loom_K30(LoomManager* manager, const char* module_name = "K30", int num_samples = 1)

Constructor.

Parameters
manager
module_name in The name of the module
num_samples in The number of samples to take and average

void Loom_K30::print_measurements() const override

Print the last set of measurements taken.

Does not package the data.

void Loom_K30::package(JsonObject json) override

Package a modules measurements or state.

Parameters
json out Object to put data into