Page 1 of 1

added WPS to MicroPython-ESP32

Posted: Mon Oct 30, 2017 10:35 am
by JensH

I added WPS (WiFi Protected Setup) support to MicroPython-ESP32:
It is only a few lines in modnetwork.c and two additional lines in Makefile and adds first of all the Push Button Configuration (WPS_PCB) mode.

The new command is "start_wps()" and can be used like this:

from network import WLAN,STA_IF
wlan = WLAN(STA_IF) # get current object, without changing the mode

I will add the optional argument "mode" to "start_wps(mode)" with WPS_PCB or WPS_PIN
and open a pull request after that.

Jens Henrik

Re: added WPS to MicroPython-ESP32

Posted: Wed Feb 06, 2019 12:11 pm
by odditive
Hello, Jens!

We are using micropython heavily in production. We just noticed, that ESP32 lacks WPS functionality, then found your unmerged PR in the old micropython-esp32 repository and the backport of your PR in the main micropython repository.
However, both PR were not merged and backport had conflicts with master (also, some CI checks failed).
We've added WPS libraries into Makefile and resolved conflicts. Everything worked just fine and we are really happy with having this functionality. Thank you for your job!

We've opened a PR with fixes on main micropython repository:

Again, thank you.

Volodymyr from Odditive team.