mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
[MQTT] Check MQTT status before sending
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "Controller.h"
|
||||
#include "../ESPEasyCore/Controller.h"
|
||||
|
||||
#include "../../ESPEasy_common.h"
|
||||
#include "../../ESPEasy-Globals.h"
|
||||
|
||||
@@ -292,7 +292,12 @@ void schedule_all_tasks_using_MQTT_controller() {
|
||||
}
|
||||
|
||||
void processMQTTdelayQueue() {
|
||||
if (MQTTDelayHandler == nullptr || !MQTTclient_connected) {
|
||||
if (MQTTDelayHandler == nullptr) {
|
||||
return;
|
||||
}
|
||||
updateMQTTclient_connected();
|
||||
if (!MQTTclient_connected) {
|
||||
scheduleNextMQTTdelayQueue();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "Scheduler.h"
|
||||
#include "../Helpers/Scheduler.h"
|
||||
|
||||
#include "../../ESPEasy_common.h"
|
||||
|
||||
@@ -19,9 +19,7 @@
|
||||
#include "../Helpers/PortStatus.h"
|
||||
|
||||
|
||||
//#define TIMER_ID_SHIFT 28 // Must be decreased as soon as timers below reach 15
|
||||
|
||||
#define TIMER_ID_SHIFT 28 // Must be decreased as soon as timers below reach 15
|
||||
#define TIMER_ID_SHIFT 28 // Must be decreased as soon as timers below reach 15
|
||||
#define SYSTEM_EVENT_QUEUE 0 // Not really a timer.
|
||||
#define CONST_INTERVAL_TIMER 1
|
||||
#define PLUGIN_TASK_TIMER 2
|
||||
|
||||
Reference in New Issue
Block a user