Skip to content
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

Allow 64 char WiFi passwords in wifi.radio.connect #7866

Merged
merged 2 commits into from
Apr 20, 2023

Conversation

rich123
Copy link

@rich123 rich123 commented Apr 16, 2023

Code changes to allow 64 character hex WiFi passwords to be used with wifi.radio.connect.

Fixes #7677.

@tannewt tannewt requested a review from dhalbert April 17, 2023 16:25
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

I tested with a Metro ESP32-S2 and a Pi Pico W. Works great. I translated my current ASCII passphrase to hex and that worked fine.

I made a couple of changes:

  • Moved validation routine out of argcheck.c, since it was rather specific, and not like the other validation routines. Used unichar_isxdigit() to do hex-digit checking.
  • Added password-length documentation.
  • Ran make translate.

I will merge when/if the build succeeds.

@dhalbert dhalbert merged commit 4b41a49 into adafruit:main Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CircuitPython 8.0.3 wifi.radio.connect does not support 64 hex digit WPA2 PSK key strings
2 participants