• John P. Swensen's avatar
    Added another overloaded WiFiSTAClass::begin() function that provides… (#6398) · d977359e
    John P. Swensen authored
    Summary
    
    The examples demonstrate how to create a WPA2 Enterprise connection, but it requires using various direct esp_idf functions. This patch is intended to create another overloaded version of the WiFi.begin() function that allows a user to create a WPA2 Enterprise connection in much the same way as different kinds of connections.
    
    My only question for the core maintainers is whether I should leave those #ifdef's in there. I added them so that it was easy to disable all the code I added via defines from my platformio.ini file, but they technically aren't necessary.
    
    Impact
    
    This should make it easier for novice users to create WPA2 Enterprise connections. For my university, I didn't need a root certificate or the client certificate or client key, so I haven't been able to debug those scenarios, but I built the begin functions to allow any one of those to be used, if needed.
    
    I can confirm that eduroam-style WPA2 Enterprise networks that only require authentication with a username and password works as expected.
    d977359e
WiFiClientEnterprise.ino 3.48 KB