From ed1b451b85337d67d5999bc0334a8cb818796305 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sun, 31 Jul 2022 13:35:25 +0200 Subject: [PATCH] ESP32 Wifi "good to have" commands --- WifiESP32.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WifiESP32.cpp b/WifiESP32.cpp index a48a590..fc7a276 100644 --- a/WifiESP32.cpp +++ b/WifiESP32.cpp @@ -91,6 +91,11 @@ bool WifiESP::setup(const char *SSid, // enableCoreWDT(1); // disableCoreWDT(0); + // clean start + WiFi.disconnect(true); + //WiFi.useStaticBuffers(true); + //WiFi.setTxPower(WIFI_POWER_8_5dBm); + const char *yourNetwork = "Your network "; if (strncmp(yourNetwork, SSid, 13) == 0 || strncmp("", SSid, 13) == 0) haveSSID = false;