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

Fix soft ap start error check #826

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Conversation

Rocketct
Copy link
Contributor

@Rocketct Rocketct commented Jan 11, 2024

mbed os doesn't allow to use password with length lower than 8 character or higher then 64, when a password lower than 8 characters or higher than 64 characters is provided it returns an error, that was not managed, the consequence is that some lines later fail on register_event_handler because the object is not correctly instantiated and then the Giga crush.
With this patch the error is handled returning immediately a failure status for the connections and avoiding further functions calls that access to a wrong location.

this fix #811

mbed os doesn't allow to use  password with length lower than 8 character
or higher then 64, when a password < 8 char is provided it returns an error
this error was not managed.
with this patch the error is handled and retur imediatly.
@facchinm facchinm merged commit d4afbb1 into arduino:main Jan 24, 2024
11 checks passed
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.

Add password length check to Wifi.beginAP()
2 participants