Loom_K30 class
#include <src/Sensors/SERIAL/K30.h>
K30 CO2 sensor module.
Contents
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.
PRINT INFORMATION
- void print_measurements() const override
- Print the last set of measurements taken.
OPERATION
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 |