added WPS to MicroPython-ESP32

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Posts: 3
Joined: Sun Oct 29, 2017 7:38 am

added WPS to MicroPython-ESP32

Post by JensH » Mon Oct 30, 2017 10:35 am


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

Posts: 1
Joined: Wed Feb 06, 2019 12:03 pm

Re: added WPS to MicroPython-ESP32

Post by odditive » Wed Feb 06, 2019 12:11 pm

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.

Post Reply