So Easy MicroPython — Wifi Auto Connector, IoT

Yungger
2 min readNov 23, 2021

*** Just simply add 2~3 lines, then your MCU (ESP8266 or ESP32) can be an IoT enabled device***

from My_WifiConnector import myWifi

net = myWifi()
net.connect() # auto setting and connect to your Wifi

Step 1: Upload library to your MCU

First, download the libraries by its link and upload them to your MCU !

*** If no idea how to upload files to your MCU board, you can read my other article “So Easy — ESP8266/ESP32 File Management” first. ***

Step 2: Import My_WifiConnector

from My_WifiConnector import myWifinet = myWifi()  
net.connect() # auto setting and connect to your Wifi

Basically, the MCU will be start to auto connect to your Wifi, if includes My_WifiConnector !!

Step 3: Live DEMO

Next, every your IoT projects can become so easy if WifiConnector used!!

For example, to control LED from MCU by a we page.

That’s all, so easy right ? Hope this helps !

Posted by Yungger

If it really help you, you are welcome to clap your hands clicking on top-left icon, or want to buy me a coffee to encourage me to write more, I thank you too 😘 😘 !!

Yungger

Maker & Freelancer

--

--