Skip to content

A MicroPython utility to allow an ESP32 to automatically connect to a network, exposing an access point if a network is not available

Notifications You must be signed in to change notification settings

DanBoothDev/micro_wifi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroWifi

A utility to allow an ESP32 to automatically connect to different networks without needing to hard code credentials.

If the device is unable to connect to a previous network, it will expose an Access Point with a web interface that allows to connect to a new network.

Uploading

If you're using the Adafruit MicroPython tool (ampy), you can use upload.sh to copy the files for you!

pip3 install adafruit-ampy
./upload.sh

Usage

"""
Basic - gimme that wifi already
Access point:
    name: MicroWifi
    password: -
"""
from micro_wifi import MicroWifi

wifi = MicroWifi()
wifi.start()
"""
Advanced - I know what I want
"""
from micro_wifi import MicroWifi

AP_NAME = 'MeaningOfLife'
AP_PASSWORD = '42'
wifi = MicroWifi(AP_NAME, AP_PASSWORD)
wifi.start()

About

A MicroPython utility to allow an ESP32 to automatically connect to a network, exposing an access point if a network is not available

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published