mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-29 10:09:11 +03:00
rename mqttlog to mqttqueue
This commit is contained in:
@@ -407,7 +407,7 @@ void MyESP::mqttUnsubscribe(const char * topic) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// print MQTT log
|
// print MQTT log
|
||||||
void MyESP::_printMQTTLog() {
|
void MyESP::_printMQTTQueue() {
|
||||||
myDebug_P(PSTR("MQTT publish queue:"));
|
myDebug_P(PSTR("MQTT publish queue:"));
|
||||||
|
|
||||||
if (_mqtt_queue.empty()) {
|
if (_mqtt_queue.empty()) {
|
||||||
@@ -865,7 +865,7 @@ void MyESP::_consoleShowHelp() {
|
|||||||
myDebug_P(PSTR("*"));
|
myDebug_P(PSTR("*"));
|
||||||
myDebug_P(PSTR("* Commands:"));
|
myDebug_P(PSTR("* Commands:"));
|
||||||
myDebug_P(PSTR("* ?/help=show commands, CTRL-D/quit=end telnet session"));
|
myDebug_P(PSTR("* ?/help=show commands, CTRL-D/quit=end telnet session"));
|
||||||
myDebug_P(PSTR("* set, system, restart, mqttlog, kick, save"));
|
myDebug_P(PSTR("* set, system, restart, mqttqueue, kick, save"));
|
||||||
|
|
||||||
#ifdef CRASH
|
#ifdef CRASH
|
||||||
myDebug_P(PSTR("* crash <dump | clear | test [n]>"));
|
myDebug_P(PSTR("* crash <dump | clear | test [n]>"));
|
||||||
@@ -1197,8 +1197,8 @@ void MyESP::_telnetCommand(char * commandLine) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// print mqtt log command
|
// print mqtt log command
|
||||||
if (strcmp(ptrToCommandName, "mqttlog") == 0) {
|
if (strcmp(ptrToCommandName, "mqttqueue") == 0) {
|
||||||
_printMQTTLog();
|
_printMQTTQueue();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef MyESP_h
|
#ifndef MyESP_h
|
||||||
#define MyESP_h
|
#define MyESP_h
|
||||||
|
|
||||||
#define MYESP_VERSION "1.2.30"
|
#define MYESP_VERSION "1.2.31"
|
||||||
|
|
||||||
#include <ArduinoJson.h>
|
#include <ArduinoJson.h>
|
||||||
#include <ArduinoOTA.h>
|
#include <ArduinoOTA.h>
|
||||||
@@ -345,7 +345,7 @@ class MyESP {
|
|||||||
char * _mqttTopic(const char * topic);
|
char * _mqttTopic(const char * topic);
|
||||||
bool _mqttQueue(const char * topic, const char * payload, bool retain);
|
bool _mqttQueue(const char * topic, const char * payload, bool retain);
|
||||||
bool _mqttQueue(const char * topic, JsonDocument payload, bool retain);
|
bool _mqttQueue(const char * topic, JsonDocument payload, bool retain);
|
||||||
void _printMQTTLog();
|
void _printMQTTQueue();
|
||||||
void _mqttPublishQueue();
|
void _mqttPublishQueue();
|
||||||
void _mqttRemoveLastPublish();
|
void _mqttRemoveLastPublish();
|
||||||
AsyncMqttClient mqttClient; // the MQTT class
|
AsyncMqttClient mqttClient; // the MQTT class
|
||||||
|
|||||||
Reference in New Issue
Block a user