|
Loom
|
Decagon 5TM soil moisture sensor module. More...
#include <Decagon_5TM.h>

Public Member Functions | |
CONSTRUCTORS / DESTRUCTOR | |
| Loom_Decagon5TM (LoomManager *manager, const uint8_t num_samples=1) | |
| Decagon 5TM module constructor. More... | |
| Loom_Decagon5TM (LoomManager *manager, JsonArrayConst p) | |
| Constructor that takes Json Array, extracts args and delegates to regular constructor. More... | |
| ~Loom_Decagon5TM ()=default | |
| Destructor. More... | |
OPERATION | |
| void | measure () override |
| Take any relevant measurements. More... | |
| void | package (JsonObject json) override |
| Package a modules measurements or state. More... | |
PRINT INFORMATION | |
| void | print_config () const override |
| Display the configuration settings of the module. More... | |
| void | print_measurements () const override |
| Print the last set of measurements taken. More... | |
Public Member Functions inherited from LoomSDI12Sensor | |
| LoomSDI12Sensor (LoomManager *manager, const char *module_name, const LoomModule::Type module_type, const uint8_t num_samples=1) | |
| Constructor. More... | |
| virtual | ~LoomSDI12Sensor ()=default |
| Destructor. More... | |
Public Member Functions inherited from LoomSensor | |
| LoomSensor (LoomManager *manager, const char *module_name, const LoomModule::Type module_type, const uint8_t num_samples) | |
| Constructor. More... | |
| virtual | ~LoomSensor ()=default |
| Destructor. More... | |
| virtual void | calibrate () |
| Calibration routine. More... | |
| uint8_t | get_num_samples () const |
| Get the number of samples sensor is set to take. More... | |
| void | set_num_samples (const uint8_t n) |
| Set the number of samples to take. More... | |
Public Member Functions inherited from LoomModule | |
| LoomModule (LoomManager *manager, const char *module_name="Unknown", const Type module_type=Type::Unknown) | |
| Constructor. More... | |
| virtual | ~LoomModule ()=default |
| Destructor. More... | |
| virtual void | second_stage_ctor () |
| Second stage construction. More... | |
| virtual bool | dispatch (JsonObject json) |
| Route command to driver. More... | |
| virtual void | power_down () |
| Turn off any hardware. More... | |
| virtual void | power_up () |
| Turn on any hardware. More... | |
| virtual void | add_config (JsonObject json) |
| Add configuration information to JsonObject. More... | |
| Type | get_module_type () const |
| Get module type. More... | |
| LoomManager * | get_device_manager () const |
| Get the device manager class if linked. More... | |
| void | get_module_name (char *buf) const |
| Copy module name into buffer. More... | |
| const char * | get_module_name () const |
| Get module name. More... | |
| Verbosity | get_print_verbosity () const |
| Get print verbosity. More... | |
| Verbosity | get_package_verbosity () const |
| Get package verbosity. More... | |
| bool | get_active () const |
| Get whether or not the module should be treated as active. More... | |
| Category | category () const |
| Get the category of the module. More... | |
| virtual void | link_device_manager (LoomManager *LM) |
| Add pointer back to device manager. More... | |
| void | set_print_verbosity (const Verbosity v) |
| Set print verbosity Controlls level of detail included in debug prints. More... | |
| void | set_package_verbosity (const Verbosity v) |
| Set package verbosity. More... | |
| void | set_active (const bool enable) |
| Set whether or not the module should be treated as active. More... | |
| virtual void | print_state () const |
| Display current state of the module. More... | |
Decagon 5TM soil moisture sensor module.
Incomplete.
| Loom_Decagon5TM::Loom_Decagon5TM | ( | LoomManager * | manager, |
| const uint8_t | num_samples = 1 |
||
| ) |
Decagon 5TM module constructor.
| [in] | num_samples | 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.
| [in] | p | The array of constuctor args to expand |
|
default |
Destructor.
|
overridevirtual |
Take any relevant measurements.
Implements LoomSensor.
|
overridevirtual |
Package a modules measurements or state.
| [out] | json | Object to put data into |
Implements LoomModule.
|
overridevirtual |
Display the configuration settings of the module.
Reimplemented from LoomSensor.
|
overridevirtual |
1.8.11