Loom_DecagonGS3 class

Decagon GS3 soil moisture sensor module.

Incomplete.

Base classes

class LoomSDI12Sensor
Abstract base class for SDI12 sensor modules.

Protected variables

float dielec_perm
Measured dielectric permativity.
float temp
Measured temperature.
float elec_cond
Measure electrical conductivity.

CONSTRUCTORS / DESTRUCTOR

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

OPERATION

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

Function documentation

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

Decagon GS3 module constructor.

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

Loom_DecagonGS3::Loom_DecagonGS3(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_DecagonGS3::package(JsonObject json) override

Package a modules measurements or state.

Parameters
json out Object to put data into

void Loom_DecagonGS3::print_measurements() const override

Print the last set of measurements taken.

Does not package the data.