From db679de8b881e8f7750c2c40c4e564909a857889 Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Thu, 21 Apr 2022 16:10:31 +0200 Subject: [PATCH] minor changes --- ESPFirewall/platformio.ini | 14 ++------------ ESPFirewall/src/main.cpp | 5 +---- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/ESPFirewall/platformio.ini b/ESPFirewall/platformio.ini index a418e60..1ece364 100644 --- a/ESPFirewall/platformio.ini +++ b/ESPFirewall/platformio.ini @@ -8,19 +8,9 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html -[env:esp32-evb] +[env:esp32] platform = espressif32 -board = esp32-evb -framework = arduino -monitor_speed = 115200 -build_flags = - -DHTTPS_LOGLEVEL=1 - -DCORE_DEBUG_LEVEL=3 -lib_deps = bblanchon/ArduinoJson@^6.19.4 - -[env:esp32-dev] -platform = espressif32 -board = az-delivery-devkit-v4 +board = esp32dev framework = arduino monitor_speed = 115200 build_flags = diff --git a/ESPFirewall/src/main.cpp b/ESPFirewall/src/main.cpp index 4670332..6101a4c 100644 --- a/ESPFirewall/src/main.cpp +++ b/ESPFirewall/src/main.cpp @@ -6,15 +6,12 @@ firewall::API *firewall_api; void setup_wifi() { - uint8_t max_retries = 5; - uint8_t retries = 1; log_d("Attempting to connect to WPA SSID: %s", ssid); WiFi.mode(WIFI_STA); WiFi.begin(ssid, psk); - while (WiFi.status() != WL_CONNECTED && retries <= max_retries) + while (WiFi.status() != WL_CONNECTED) { delay(2000); - log_d("Connecting... (%i/%i)", retries++, max_retries); } log_i("IP Address: %s", WiFi.localIP().toString().c_str()); }