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

feat: Support integer and byte slice value for SetNetwork() #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

feat: Support integer and byte slice value for SetNetwork() #2

wants to merge 3 commits into from

Conversation

laeo
Copy link

@laeo laeo commented Aug 19, 2021

With these changes, we can launch an Access Point by using wpa_supplicant.

conn.SetNetwork(0, "ssid", "test-access-point") // hex encoded ssid is not tested, hope someone can improve it.
conn.SetNetwork(0, "key_mgmt", "WPA-PSK")
conn.SetNetwork(0, "psk", "12345678")
conn.SetNetwork(0, "mode", 2) // we have to set mode to 2 without double quotes, so we need support integer value.
conn.SetNetwork(0, "frequency", 2414)
conn.EnableNetwork(0)

@laeo
Copy link
Author

laeo commented Aug 19, 2021

Because there are break changes, maybe we could provide another function like SetNetworkV2() for better compatibility.

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.

1 participant