feature/http_call_send_json #3

Merged
f merged 56 commits from feature/http_call_send_json into master 2022-11-27 11:02:22 +01:00
Showing only changes of commit 0cb4212fc8 - Show all commits

View file

@ -174,7 +174,7 @@ void initSensors()
void wifiConnectionCheck()
{
if ((wifi_check_interval_counter + WIFI_CHECK_INTERVAL_MS) > millis() or WiFi.status() == WL_CONNECTED)
if ((wifi_check_interval_counter + WIFI_CHECK_INTERVAL_MS) > millis())
{
// if check interval is not exceeded abort check
return;
@ -182,6 +182,12 @@ void wifiConnectionCheck()
wifi_check_interval_counter = millis();
if (WiFi.status() == WL_CONNECTED)
{
// if we are connected
return;
}
debug("no connection or time to check " + String(WiFi.status() == WL_CONNECTED));
wifiConnect();