feat: set min security level to WIFI_AUTH_WEP

This commit is contained in:
lorow 2024-04-08 20:33:10 +02:00
parent d053ece63e
commit d9950609ef

View File

@ -23,6 +23,9 @@ void WiFiHandler::begin() {
// forcefully disconnect to reset anything that could've been saved before
WiFi.disconnect();
// we purposefully set the lowest min required security level, some boards have problems connecting otherwise
WiFi.setMinSecurity(WIFI_AUTH_WEP);
if (this->_enable_adhoc ||
wifiStateManager.getCurrentState() == WiFiState_e::WiFiState_ADHOC) {
log_d("ADHOC is enabled, setting up ADHOC network \n\r");