From 8852f13d04715999d17d0c5e3ea171e5f31280d2 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Mon, 16 May 2022 10:47:20 +0200 Subject: [PATCH] Comments added --- firmware/firmware.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/firmware.ino b/firmware/firmware.ino index 9dc6c7b..ebb2db9 100644 --- a/firmware/firmware.ino +++ b/firmware/firmware.ino @@ -68,9 +68,11 @@ void setup() wifiManager.setTimeout(WIFI_CONFIG_PORTAL_TIMEOUT_S); #ifndef SLEEP_IF_NO_WLAN_CONNECTION + // do not sleep, repeat connecting while #endif #ifdef def SLEEP_IF_NO_WLAN_CONNECTION + // stop connecting after fail to connect to wifi if #endif (!wifiManager.autoConnect(wifiName.c_str(), "DEADBEEF")) @@ -82,6 +84,7 @@ void setup() delay(100); #endif #ifndef SLEEP_IF_NO_WLAN_CONNECTION + // sleep a few seconds and go on trying to connect delay(5000); #endif }