From e7a2759b65e1bf41227aad46df57425a92dadc50 Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Tue, 23 Mar 2021 14:30:19 +0200 Subject: [PATCH] Allow STA SSID length of 32 Fixes: https://github.com/espressif/arduino-esp32/issues/3218 --- libraries/WiFi/src/WiFiSTA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/WiFi/src/WiFiSTA.cpp b/libraries/WiFi/src/WiFiSTA.cpp index 72d5e998..aed7a174 100644 --- a/libraries/WiFi/src/WiFiSTA.cpp +++ b/libraries/WiFi/src/WiFiSTA.cpp @@ -121,7 +121,7 @@ wl_status_t WiFiSTAClass::begin(const char* ssid, const char *passphrase, int32_ return WL_CONNECT_FAILED; } - if(!ssid || *ssid == 0x00 || strlen(ssid) > 31) { + if(!ssid || *ssid == 0x00 || strlen(ssid) > 32) { log_e("SSID too long or missing!"); return WL_CONNECT_FAILED; }