fixed auto reconnect and resubscribe inside mqtt wrapper loop

This commit is contained in:
Emanuele Trabattoni
2025-07-18 19:29:19 +02:00
parent e8f395f8ef
commit 7c776e4787
4 changed files with 50 additions and 11 deletions

View File

@@ -11,6 +11,7 @@
#include <config.h>
#include <mutex>
#include <functional>
typedef std::string topic_t;
typedef std::function<void(const ArduinoJson::JsonDocument &)> action_t; // the actions receive a JsonObject containing the received message