Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
Loading...
Searching...
No Matches
SensorTask.h File Reference
#include <ArduinoJson.h>
Include dependency graph for SensorTask.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void init_sensors (void)
 Scans the SDI-12 bus and fills in the sensors object. More...
 
bool read_sensor (const char addr, JsonArray &timeseries_array)
 Read a single SDI-12 sensor and add its values to timeseries_array. More...
 
void sensor_task (void)
 Read all sensors, put the readings in a JSON message and save the JSON to a file on SPIFFS to be uplinked later. More...
 

Variables

constexpr size_t MAX_SENSORS = 10
 
static constexpr uint8_t MAX_VALUES = 32
 

Function Documentation

◆ init_sensors()

void init_sensors ( void  )

Scans the SDI-12 bus and fills in the sensors object.

◆ read_sensor()

bool read_sensor ( const char  addr,
JsonArray &  timeseries_array 
)

Read a single SDI-12 sensor and add its values to timeseries_array.

◆ sensor_task()

void sensor_task ( void  )

Read all sensors, put the readings in a JSON message and save the JSON to a file on SPIFFS to be uplinked later.

Variable Documentation

◆ MAX_SENSORS

constexpr size_t MAX_SENSORS = 10
constexpr

◆ MAX_VALUES

constexpr uint8_t MAX_VALUES = 32
staticconstexpr