fix wifi and mqtt reconnection issues
This commit is contained in:
parent
b426988c43
commit
4d881a96bd
@ -79,6 +79,10 @@ void setup() {
|
||||
Ota::tLoop.enable();
|
||||
Mqtt::tReConnect.enable();
|
||||
Ntp::tUpdateTime.enable();
|
||||
},
|
||||
[] {
|
||||
Ota::tLoop.disable();
|
||||
Mqtt::tReConnect.disable();
|
||||
});
|
||||
|
||||
pinMode(BUTTON, INPUT_PULLUP);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user