1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

ESP32 Wifi "good to have" commands

This commit is contained in:
Harald Barth 2022-07-31 13:35:25 +02:00
parent 90d6ff43c5
commit ed1b451b85

View File

@ -91,6 +91,11 @@ bool WifiESP::setup(const char *SSid,
// enableCoreWDT(1); // enableCoreWDT(1);
// disableCoreWDT(0); // disableCoreWDT(0);
// clean start
WiFi.disconnect(true);
//WiFi.useStaticBuffers(true);
//WiFi.setTxPower(WIFI_POWER_8_5dBm);
const char *yourNetwork = "Your network "; const char *yourNetwork = "Your network ";
if (strncmp(yourNetwork, SSid, 13) == 0 || strncmp("", SSid, 13) == 0) if (strncmp(yourNetwork, SSid, 13) == 0 || strncmp("", SSid, 13) == 0)
haveSSID = false; haveSSID = false;