Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
Loading...
Searching...
No Matches
mqtt_cli.h
Go to the documentation of this file.
1
8#ifndef WOMBAT_MQTT_CLI_H
9#define WOMBAT_MQTT_CLI_H
10
11#include "DeviceConfig.h"
12
19class CLIMQTT {
22
23public:
25 inline static const std::string cmd = "mqtt";
26
27 static void dump(Stream& stream);
28
29 static BaseType_t enter_cli(char *pcWriteBuffer, size_t xWriteBufferLen,
30 const char *pcCommandString);
31};
32
33#endif //WOMBAT_MQTT_CLI_H
Node configuration options.
CLI MQTT configuration.
Definition: mqtt_cli.h:19
static void dump(Stream &stream)
Display current MQTT configuration.
Definition: mqtt_cli.cpp:33
static DeviceConfig & config
Get the current device configuration upon initialisation.
Definition: mqtt_cli.h:21
static const std::string cmd
Prefix for all MQTT related configuration commands.
Definition: mqtt_cli.h:25
static BaseType_t enter_cli(char *pcWriteBuffer, size_t xWriteBufferLen, const char *pcCommandString)
Command-line interface command for setting MQTT parameters.
Definition: mqtt_cli.cpp:63
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