CLI MQTT configuration.
More...
#include <mqtt_cli.h>
|
static void | dump (Stream &stream) |
| Display current MQTT configuration. More...
|
|
static BaseType_t | enter_cli (char *pcWriteBuffer, size_t xWriteBufferLen, const char *pcCommandString) |
| Command-line interface command for setting MQTT parameters. More...
|
|
|
static const std::string | cmd = "mqtt" |
| Prefix for all MQTT related configuration commands. More...
|
|
CLI MQTT configuration.
Provides an interface between the user and the MQTT settings stored on the ESP32 in SPIFFS.
◆ dump()
void CLIMQTT::dump |
( |
Stream & |
stream | ) |
|
|
static |
Display current MQTT configuration.
- Parameters
-
◆ enter_cli()
BaseType_t CLIMQTT::enter_cli |
( |
char * |
pcWriteBuffer, |
|
|
size_t |
xWriteBufferLen, |
|
|
const char * |
pcCommandString |
|
) |
| |
|
static |
Command-line interface command for setting MQTT parameters.
This function provides a command-line interface for setting MQTT connection parameters such as the host, port, user, and password. Commands include:
list
: List MQTT configuration.
host
: MQTT broker host.
port
: MQTT broker port.
user
: MQTT broker username.
password
: MQTT broker password.
- Parameters
-
pcWriteBuffer | The buffer to write the command's output to. |
xWriteBufferLen | The length of the write buffer. |
pcCommandString | The command string to be parsed. |
- Returns
- pdTRUE if there are more responses to come, pdFALSE if this is the final response.
◆ cmd
const std::string CLIMQTT::cmd = "mqtt" |
|
inlinestatic |
Prefix for all MQTT related configuration commands.
◆ config
Get the current device configuration upon initialisation.
The documentation for this class was generated from the following files: