Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
Loading...
Searching...
No Matches
DeviceConfig.cpp File Reference
#include "DeviceConfig.h"
#include <SPIFFS.h>
#include "Utils.h"
#include "cli/FreeRTOS_CLI.h"
#include "cli/device_config/acquisition_intervals.h"
#include "cli/device_config/mqtt_cli.h"
#include "cli/device_config/ftp_cli.h"
#include "globals.h"
Include dependency graph for DeviceConfig.cpp:

Macros

#define TAG   "config"
 ESP32 debug output tag. More...
 
#define BUF_SIZE   64
 Size of buffer for reading and writing. More...
 

Variables

constexpr const char * config_filename = "/config"
 Default configuration path. More...
 
static char buf [BUF_SIZE+1]
 Buffer for sending commands. More...
 
static char rsp [BUF_SIZE+1]
 Buffer for reading responses. More...
 
static RTC_DATA_ATTR uint32_t bootCount = 0
 Counter on the number of times the ESP32 has been re-booted. More...
 
JsonDocument sdi12Defns
 JSON document instance to handle SDI-12 device definitions. More...
 

Macro Definition Documentation

◆ BUF_SIZE

#define BUF_SIZE   64

Size of buffer for reading and writing.

◆ TAG

#define TAG   "config"

ESP32 debug output tag.

Variable Documentation

◆ bootCount

RTC_DATA_ATTR uint32_t bootCount = 0
static

Counter on the number of times the ESP32 has been re-booted.

◆ buf

char buf[BUF_SIZE+1]
static

Buffer for sending commands.

◆ config_filename

constexpr const char* config_filename = "/config"
constexpr

Default configuration path.

◆ rsp

char rsp[BUF_SIZE+1]
static

Buffer for reading responses.

◆ sdi12Defns

JsonDocument sdi12Defns

JSON document instance to handle SDI-12 device definitions.