9#ifndef WOMBAT_CLI_ACQUISITION_INTERVALS_H
10#define WOMBAT_CLI_ACQUISITION_INTERVALS_H
12#include <freertos/FreeRTOS.h>
14#include <StreamString.h>
16#include "cli/FreeRTOS_CLI.h"
29 inline static const std::string
cmd =
"interval";
31 static BaseType_t
enter_cli(
char *pcWriteBuffer,
size_t xWriteBufferLen,
32 const char *pcCommandString);
34 static void dump(Stream& stream);
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