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

Add AuthMode class #4685

Merged
merged 1 commit into from
Apr 30, 2021
Merged

Add AuthMode class #4685

merged 1 commit into from
Apr 30, 2021

Conversation

microdev1
Copy link
Collaborator

Adds AuthMode class. Instead of using combined enum filed like WPA_WPA2_PSK, uses a list separating the fields [WPA,WPA2,PSK].

Code:

import wifi
for network in wifi.radio.start_scanning_networks():
    print(network.authmode)
wifi.radio.stop_scanning_networks()

Output:

[wifi.AuthMode.WPA, wifi.AuthMode.WPA2, wifi.AuthMode.PSK]

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

@gamblor21 gamblor21 merged commit 5ef9b10 into adafruit:main Apr 30, 2021
@microdev1 microdev1 deleted the authmode branch April 30, 2021 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants