2018-09-21 22:14:25 -04:00
|
|
|
esp32-wifi-manager
|
|
|
|
------------------
|
|
|
|
|
|
|
|
WiFi Manager for ESP32. That's it. No captive portal, no fallback if AP is not available. Just WiFi Management.
|
|
|
|
|
2018-09-22 01:03:07 -04:00
|
|
|
# Why
|
|
|
|
Most ESP32 WiFI Manager solutions are just hotspot captive portals that are used to (maybe) scan for and then
|
|
|
|
connect to an Access Point in the area. This is cumbersome if you want your device to be portable, connecting
|
|
|
|
to know APs in the area.
|
|
|
|
|
|
|
|
This is intended to do one job. Handle connecting to WiFi. Feeding in the AP config info is up to you. But I
|
|
|
|
trust you and have faith you can do it!
|
|
|
|
|
2018-09-22 00:38:36 -04:00
|
|
|
# What ~~*does*~~*will* it do?
|
2018-09-21 22:14:25 -04:00
|
|
|
|
2018-09-22 01:03:07 -04:00
|
|
|
* Stores info for **multiple** APs
|
|
|
|
* Connects to "best"\* AP available
|
2018-09-21 22:14:25 -04:00
|
|
|
* Remembers which AP was connected to last
|
2018-09-22 01:03:07 -04:00
|
|
|
* Support more than basic auth
|
2018-09-21 22:14:25 -04:00
|
|
|
* Tells you you're a pretty alrigh person
|
|
|
|
|
2018-09-22 01:03:07 -04:00
|
|
|
\* **best** to be determined
|
|
|
|
|
|
|
|
# How do I feed this thing?
|
|
|
|
Only basic `ssid` and `password` authenication are supported at the moment but adding will be the same in the future.
|
|
|
|
The API method wifi_manager_add_ap is used to add an Access Point to the config. It is automatically saved and if it
|
|
|
|
is current not connected, it will attempt to make a connection.
|
|
|
|
|
2018-09-21 22:14:25 -04:00
|
|
|
# API
|
|
|
|
|
|
|
|
## `EventGroupHandle_t wifi_manager_start()`
|
|
|
|
Creates EventGroup and starts main WiFi Manager task loop.
|
|
|
|
|
|
|
|
## `uint8_t wifi_manager_ap_count()`
|
|
|
|
Return number of AP in storage.
|
|
|
|
|
|
|
|
## `uint8_t wifi_manager_add_ap(char *ssid, char *password)`
|
|
|
|
Adds AP to storage. !This will change! Will become a struct config.
|
|
|
|
|
|
|
|
# `EventGroupHandle_t wm_event_group Bits`
|
|
|
|
|
|
|
|
## `WIFI_CONNECTED`
|
|
|
|
WiFi connected has been successful.
|
|
|
|
|
|
|
|
## `WIFI_CONNECTING`
|
|
|
|
WiFi Manager is attempting to make a connection.
|
|
|
|
|
|
|
|
## `AP_AVAILABLE`
|
|
|
|
AP info has been retreived from storage.
|
|
|
|
This is in flux, the naming is potentially confusing.
|