A MicroPython WiFi manager for ESPx devices with fallback web configuration portal
Project description
MicroPython WiFi Manager
A MicroPython WiFi manager for ESPx devices with fallback web configuration portal
Based on tayfunulu's WifiManager, but incorporates jczic's MicroDNSSrv to create a captive portal by default so users don't have to find the access point's IP Address. The goal is to act similarly to tzapu's popular C++ WifiManager while taking advantage of the simplicity of python for development.
Installation
Installation with upip
⚠ Note: if you are using this package with OTA updates, be sure to avoid overwriting
lib/where upip installs packages.
From micropython command line run
import upip
upip.install("micro-wifi-manager")
Manual Installation
Copy the microwifimanager/ directory to your device and refer to main.py for usage
Main Features
- Easily setup device's WiFi connection from phone or computer
- Web based connection manager with captive portal
- Save wifi password in
wifi.dat(csv format)
Usage
See main.py for an example
from microwifimanager.manager import WifiManager
wlan = WifiManager().get_connection()
The WifiManager lets you setup your wifi access point's name and password as well as the authentication modes
# authmodes: 0=open, 1=WEP, 2=WPA-PSK, 3=WPA2-PSK, 4=WPA/WPA2-PSK
WifiManager(ssid='WifiManager', password='', authmode=0)
Logic
- Check
wifi.datfile and try saved networks/passwords - Host WiFi access point and web server, and redirect all traffic to web server (captive portal)
- User can then provide the network password which is saved to
wifi.dat - Run user code
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file micro-wifi-manager-0.0.4.tar.gz.
File metadata
- Download URL: micro-wifi-manager-0.0.4.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02e5f4f81802648144d2ef465106ead59260e7a12476fa906b0a5408af9dca16
|
|
| MD5 |
0ec34a7836a287478cc2db5b993cf7d9
|
|
| BLAKE2b-256 |
53dd8676b1a16959fe46e20965e40d32b8eaa28500bd5f63ff3674742b1dc61d
|