Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
Loading...
Searching...
No Matches
acquisition_intervals.h
Go to the documentation of this file.
1
9#ifndef WOMBAT_CLI_ACQUISITION_INTERVALS_H
10#define WOMBAT_CLI_ACQUISITION_INTERVALS_H
11
12#include <freertos/FreeRTOS.h>
13#include <Stream.h>
14#include <StreamString.h>
15
16#include "cli/FreeRTOS_CLI.h"
17#include "DeviceConfig.h"
18
26
27public:
29 inline static const std::string cmd = "interval";
30
31 static BaseType_t enter_cli(char *pcWriteBuffer, size_t xWriteBufferLen,
32 const char *pcCommandString);
33
34 static void dump(Stream& stream);
35};
36
37#endif //WOMBAT_CLI_ACQUISITION_INTERVALS_H
Node configuration options.
Setup acquisition intervals based on device configuration stored in SPIFFS memory or via the CLI.
Definition: acquisition_intervals.h:23
static void dump(Stream &stream)
Print out interval information into a provided Stream.
Definition: acquisition_intervals.cpp:28
static DeviceConfig & config
Get the device configuration from SPIFFS memory on initialisation.
Definition: acquisition_intervals.h:25
static BaseType_t enter_cli(char *pcWriteBuffer, size_t xWriteBufferLen, const char *pcCommandString)
CLI entrypoint for measurement and uplink interval setup.
Definition: acquisition_intervals.cpp:75
static const std::string cmd
Command to change measurement and/or uplink interval.
Definition: acquisition_intervals.h:29
Node configuration options for both getting and setting values.
Definition: DeviceConfig.h:21
static DeviceConfig & get()
Provides an instance to other functions (MQTT and uplink intervals) to access (set,...
Definition: DeviceConfig.h:37