standalone changes for mqtt testing

This commit is contained in:
proddy
2021-01-09 21:49:29 +01:00
parent 2b69267d74
commit 4403ca4070

View File

@@ -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