From b787b975a2cea7e7f8543a53a655075ce672e327 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 31 Aug 2024 16:13:17 +0200 Subject: [PATCH] add standlone connect (was in emsesp main class) --- src/mqtt.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index 493c06723..59e396b09 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -393,6 +393,10 @@ void Mqtt::start() { } EMSESP::esp8266React.setWill(will_topic); // with qos 1, retain true + +#if defined(EMSESP_STANDALONE) + Mqtt::on_connect(); // simulate an MQTT connection +#endif } void Mqtt::set_publish_time_boiler(uint16_t publish_time) {