Loom_Decagon5TM class

Decagon 5TM soil moisture sensor module.

Incomplete.

Base classes

class LoomSDI12Sensor
Abstract base class for SDI12 sensor modules.

CONSTRUCTORS / DESTRUCTOR

Loom_Decagon5TM(LoomManager* manager, const uint8_t num_samples = 1)
Decagon 5TM module constructor.
Loom_Decagon5TM(LoomManager* manager, JsonArrayConst p)
Constructor that takes Json Array, extracts args and delegates to regular constructor.
~Loom_Decagon5TM() defaulted
Destructor.

OPERATION

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

Function documentation

Loom_Decagon5TM::Loom_Decagon5TM(LoomManager* manager, const uint8_t num_samples = 1)

Decagon 5TM module constructor.

Parameters
manager
num_samples in Set(Int) | <8> | {1, 2, 4, 8, 16} | How many samples to take and average

Loom_Decagon5TM::Loom_Decagon5TM(LoomManager* manager, JsonArrayConst p)

Constructor that takes Json Array, extracts args and delegates to regular constructor.

Parameters
manager
in The array of constuctor args to expand

void Loom_Decagon5TM::package(JsonObject json) override

Package a modules measurements or state.

Parameters
json out Object to put data into

void Loom_Decagon5TM::print_measurements() const override

Print the last set of measurements taken.

Does not package the data.