From a0bf5b9992c1f7da88d7c8fdd6b7ae63143d4a73 Mon Sep 17 00:00:00 2001 From: Emmanuel Lacour Date: Sat, 23 Jan 2021 19:42:15 +0100 Subject: [PATCH 1/1] Fix wrong reconnect logic --- cave/cave.ino | 2 +- station-meteo/station-meteo.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cave/cave.ino b/cave/cave.ino index 996154e..35b3f27 100644 --- a/cave/cave.ino +++ b/cave/cave.ino @@ -73,7 +73,7 @@ void loop() { } } - if ( WiFi.status() != WL_CONNECTED ) { + if ( WiFi.status() == WL_CONNECTED ) { sensors_event_t event; dht.temperature().getEvent(&event); diff --git a/station-meteo/station-meteo.ino b/station-meteo/station-meteo.ino index 8c25eb8..1cad984 100644 --- a/station-meteo/station-meteo.ino +++ b/station-meteo/station-meteo.ino @@ -102,7 +102,7 @@ void loop(void) } } - if ( WiFi.status() != WL_CONNECTED ) { + if ( WiFi.status() == WL_CONNECTED ) { String temp_influx_line; String rain_influx_line; float rainfall_1min(0); -- 2.11.0