fix issue with wifi and mqtt reconnection
This commit is contained in:
parent
a68b9b4971
commit
758cc52b16
@ -42,10 +42,16 @@ namespace Board {
|
||||
[] {turnLed(BLUE_LED, false);},
|
||||
[] {turnLed(BLUE_LED);}
|
||||
);
|
||||
Wifi::setup(ts, []{
|
||||
Ota::tLoop.enable();
|
||||
Mqtt::tReConnect.enable();
|
||||
});
|
||||
Wifi::setup(ts,
|
||||
[] {
|
||||
Ota::tLoop.enable();
|
||||
Mqtt::tReConnect.enable();
|
||||
},
|
||||
[] {
|
||||
Ota::tLoop.disable();
|
||||
Mqtt::tReConnect.disable();
|
||||
}
|
||||
);
|
||||
Ota::setup(
|
||||
[] {
|
||||
Mqtt::publishCleanupConfig();
|
||||
|
||||
@ -33,7 +33,7 @@ framework = arduino
|
||||
lib_deps =
|
||||
${env.lib_deps}
|
||||
https://git.hodos.ro/libraries/ha-mqtt.git@^1.0.0
|
||||
https://git.hodos.ro/libraries/wifi.git@^1.0.1
|
||||
https://git.hodos.ro/libraries/wifi.git@^1.0.2
|
||||
upload_port = 192.168.6.161
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user