Skip to content

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