From ad1e84cc0e9e5e7e6cea987e76a8025d16a1995d Mon Sep 17 00:00:00 2001 From: matteo1010 Date: Sun, 6 Sep 2020 16:42:13 +0200 Subject: [PATCH] disconnect first mqtt then wifi --- flora/flora.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flora/flora.ino b/flora/flora.ino index 1cda8a5..9445e97 100644 --- a/flora/flora.ino +++ b/flora/flora.ino @@ -362,9 +362,10 @@ void setup() { delay(1500); } - // disconnect wifi and mqtt - disconnectWifi(); + // disconnect mqtt and wifi disconnectMqtt(); + disconnectWifi(); + // delete emergency hibernate task vTaskDelete(hibernateTaskHandle);