update wifi library

This commit is contained in:
Nicu Hodos 2024-06-04 21:35:36 +02:00
parent 5014fd7f98
commit 8b451fbbcf
2 changed files with 8 additions and 2 deletions

View File

@ -20,7 +20,7 @@ lib_deps =
jchristensen/Timezone@^1.2.4
adafruit/Adafruit Unified Sensor @ ^1.1.4
adafruit/Adafruit BME280 Library@^2.2.4
https://git.hodos.ro/libraries/wifi.git@^1.0.0
https://git.hodos.ro/libraries/wifi.git@^1.0.1
https://git.hodos.ro/libraries/ha-mqtt.git@^1.0.0
build_flags = -D WIFI_ALWAYS_ON=1

View File

@ -57,7 +57,13 @@ void setup() {
digitalWrite(LED_BUILTIN, HIGH);
Display::setup();
Ota::setup();
Ota::setup(
[] {
Display::displayText("load");
Mqtt::publishCleanupConfig();
delay(2000);
Mqtt::disconnect();
});
Ntp::setup();
Bme::setup();
Mqtt::setup(&ts,