Home

Awesome

WiFi Manager

WiFi Manager for ESP8266 and ESP32 using MicroPython. It might work in any other board since it only uses standard MicroPython libraries, but that's not tested.

ESP8266 ESP32

What's new?

Version 2.0 comes with some improvements:

Wishlist

How It Works

Installation and Usage

# Download the "wifi_manager.py" file to your device;

# Import the library:
from wifi_manager import WifiManager

# Initialize it
wm = WifiManager()

# By default the SSID is WiFiManager and the password is wifimanager.
# You can customize the SSID and password of the AP for your needs:
wm = WifiManager(ssid="my ssid",password="my password")

# Start the connection:
wm.connect()

Methods

.connect()

Tries to connect to a network and if it doesn't work start the configuration portal.

.disconnect()

Disconnect from network.

.is_connected()

Returns True if it's connected and False if it's not. It's the simpler way to test the connection inside your code.

.get_address()

Returns a tuple with the network interface parameters: IP address, subnet mask, gateway and DNS server.

Notes

Thanks To

https://github.com/tayfunulu/WiFiManager/