-
Notifications
You must be signed in to change notification settings - Fork 74
Adding WPA2 Enterprise support to the WiFi manager library #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Prevents errors with unsent data on large header values, long URL paths
In certain cases, the socket may not receive a full response (or any response), causing the while loop in readline to go on forever. After failing to receive any data, this fix will raise an exception and fail out.
Co-Authored-By: Craig <[email protected]>
nice, please make |
So...I thought I could just google this and figure it out, but this is getting into actual CS stuff that I haven't dealt with before. Is the fix as simple as just changing the "param int" to "param enum"? |
ok make them named constants then! |
Ah ha! I think I figured out what you're asking for. Are you suggesting something like this class in the MAX31856 library? |
yes! |
…R reviews; added WPA2 Enterprise version of aio example script
Just a heads-up - I took @kattni up on her offer to assist with the pylint issues. We're scheduled to chat about this on Thursday (5/23) evening, so there are other commits coming. |
Had my meeting with @kattni this evening. I'm going to refactor the |
Fixed infinite loop when socket readline fails
Make timeout a keyword argument
DigitalIO Class for ESP32SPI
ok -- now relevant to this PR - I tried my often used "cherlights" test with this PR and there appears to have been some breaking change -- this code worked on the previous release
code
|
hmmm -- on a second run -- it ran ok -- looking further into it. ah -- it fails only after the conection failure -- in the past, wifimanager would recover gracefully and retry -- something has changed in wifimanager found it -- the line initializing failure_count was moved so it is not initialized before the exception and then fails the increment at line 125 |
a simple fix -- just have to move the line taht initializes failure_cunt up before the attempt to connect or else it throws the exception before it gets initialized
|
oops - the proposed fix above is not correct -- it will circumvent the maximum number of retries. this should work better
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see additional comment/concern in connect_enterprise
Thanks @jerryneedell and @nevercast for poking at the nina-fw, but I'm going to ignore those issues mentioned above since they are unrelated to this PR. I'll follow-up on the issue opened on the nina-fw repo when I get a chance (probably later this week or weekend). With regards to the failure_count issue, yeah, that's my fault. As soon as you mentioned it, I knew what had happened. Work suddenly got very busy yesterday after the CP weekly meeting, so I'm only going to have time after work this week to work on fixing the issue. Worst case, I'll definitely have time this weekend. Thanks again! |
@jerryneedell if you could give this fix a try, I'd appreciate it |
Expose ESP object in WiFiManager
Chunk buffer sends into 64 byte chunks
OK....I think this will do it, @kattni. Much hacking of code and poking at git, and I think I have it. Let me know if you catch something I missed....totally possible at this point ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this up!
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 1.6.0 from 1.5.0: > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#45 from docmollo/docs_wpa2_wifimgr Updating https://github.com/adafruit/Adafruit_CircuitPython_PyPortal to 3.0.5 from 3.0.4: > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#43 from dastels/master Updating https://github.com/adafruit/Adafruit_CircuitPython_CursorControl to 2.1.1 from 2.1.0: > Merge pull request adafruit/Adafruit_CircuitPython_CursorControl#9 from brentru/patch-generate-cursor Updating https://github.com/adafruit/Adafruit_CircuitPython_Hue to 1.0.1 from v1.0.0: > Merge pull request adafruit/Adafruit_CircuitPython_Hue#8 from NanoDano/patch-2 > Merge pull request adafruit/Adafruit_CircuitPython_Hue#7 from NanoDano/patch-1 Updating https://github.com/adafruit/Adafruit_CircuitPython_SimpleIO to 1.2.1 from 1.2.0: > Merge pull request adafruit/Adafruit_CircuitPython_SimpleIO#41 from iraytrace/master Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA: > Added the following libraries: Adafruit_CircuitPython_MiniMQTT
This is my first attempt to add support for WPA2 Enterprise to the WiFi Manager library. It all works in my testing environment. The one thing I was thinking about, but didn't add, was support to check the NINA firmware version and bail out if the ESP32 isn't running a compatible version.
NOTE: Pylint returns some not-happy results, but I'm not sure if they are going to be issues. If so, I'm not sure how to go about resolving them. Some guideance would be appreciated.