mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
standalone changes for mqtt testing
This commit is contained in:
@@ -1065,7 +1065,7 @@ void EMSESP::start() {
|
||||
dallassensor_.start(); // dallas external sensors
|
||||
webServer.begin(); // start web server
|
||||
|
||||
// emsdevices.reserve(5); // reserve space for initially 5 devices to avoid mem frag issues
|
||||
emsdevices.reserve(5); // reserve space for initially 5 devices to avoid mem frag issues
|
||||
|
||||
LOG_INFO(F("EMS Device library loaded with %d records"), device_library_.size());
|
||||
|
||||
@@ -1075,6 +1075,10 @@ void EMSESP::start() {
|
||||
System::show_mem("after start()");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(EMSESP_STANDALONE)
|
||||
Mqtt::on_connect(); // simulate an MQTT connection
|
||||
#endif
|
||||
}
|
||||
|
||||
// main loop calling all services
|
||||
|
||||
Reference in New Issue
Block a user