Repository navigation
ports/esp32/modnetwork.c: Added WPS. - #7452
Closed
eydam-prototyping wants to merge 0 commit into
Closed
eydam-prototyping wants to merge 0 commit into
eydam-prototyping wants to merge 0 commit into
Conversation
Contributor
Author
|
I added WPS-Support, since #4464 was not merged. I considered the post from @dpgeorge in the PR. I think, it shoud be ok now. You can test this commit by running this code: import network
import time
wlan = network.WLAN()
wlan.active(True)
wlan.connect(wps=True)
while wlan.status() == network.STAT_WPS_PROBING:
print(".")
time.sleep(1)
if wlan.status() == network.STAT_CONNECTING:
print("WPS finished, connecting to " + wlan.config("essid"))
else:
print("WPS failed")
return
while wlan.status() == network.STAT_CONNECTING:
print(".")
time.sleep(1)
if wlan.isconnected():
print("successfully connected")
print(wlan.ifconfig())Or you can use WPS-PIN-Mode: import network
import time
wlan = network.WLAN()
wlan.active(True)
wlan.connect(wps=True, wps_mode=network.WPS_TYPE_PIN)
print("Enter WPS-Pin into Router: " + wlan.config("wps_pin"))
while wlan.status() == network.STAT_WPS_PROBING:
print(".")
time.sleep(1)
if wlan.status() == network.STAT_CONNECTING:
print("WPS finished, connecting to " + wlan.config("essid"))
else:
print("WPS failed")
return
while wlan.status() == network.STAT_CONNECTING:
print(".")
time.sleep(1)
if wlan.isconnected():
print("successfully connected")
print(wlan.ifconfig())When the ESP32 is connected to the WiFi, you can read the password via Please let me know what you think. |
eydam-prototyping
marked this pull request as ready for review
June 24, 2021 12:38
Contributor
Author
|
Is there anything I can do to get this merged? |
|
would be really awesome to have this feature 💕 |
eydam-prototyping
force-pushed
the
ESP32_WPS
branch
from
November 12, 2021 21:50
824554b to
0be3b91
Compare
|
all the wps topics somehow die ._. Would be great to have WPS functionality |
|
@eydam-prototyping why did you close this PR? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added WPS (PIN and PBC-Mode) for ESP32.
Signed-off-by: Tobias Eydam [email protected]