|
5 jaren geleden | |
---|---|---|
.. | ||
CMakeLists.txt | 7e4ed77af0 move to bootstrap | 5 jaren geleden |
Kconfig.projbuild | b482389eca Align with main branch (#18) | 5 jaren geleden |
LICENSE.md | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
README.md | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
ap.json | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
bootstrap.min.css.gz | 7e4ed77af0 move to bootstrap | 5 jaren geleden |
bootstrap.min.js.gz | 7e4ed77af0 move to bootstrap | 5 jaren geleden |
code.js | fb000e56be clean up recovery mode | 5 jaren geleden |
component.mk | 7e4ed77af0 move to bootstrap | 5 jaren geleden |
compress.bat | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
connect | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
dns_server.c | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
dns_server.h | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
http_server.c | de76b8372e Merge remote-tracking branch 'origin/WiFi-Manager' into Over_The_Air_Update | 5 jaren geleden |
http_server.h | 07873a7710 Jenkins integration - Migrate to CMake | 5 jaren geleden |
index.html | fb000e56be clean up recovery mode | 5 jaren geleden |
jquery.min.js.gz | 7e4ed77af0 move to bootstrap | 5 jaren geleden |
json.c | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
json.h | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
lock.png | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
main.c.txt | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
popper.min.js.gz | 7e4ed77af0 move to bootstrap | 5 jaren geleden |
settings.png | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
status | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
style.css | 76b2d9eb41 small cosmetic fixes | 5 jaren geleden |
wifi0.png | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
wifi1.png | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
wifi2.png | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
wifi24.png | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
wifi3.png | 6e7793a756 initial work on a wifi/http configuration module | 5 jaren geleden |
wifi_manager.c | c01c33f72f more ota work-ota cmd line implemented-not tested | 5 jaren geleden |
wifi_manager.h | 8aedca48a7 OTA Work in progress | 5 jaren geleden |
esp32-wifi-manager is an esp32 program that enables easy management of wifi networks through a web application.
esp32-wifi-manager is lightweight (8KB of task stack in total) and barely uses any CPU power through a completely event driven architecture. It's an all in one wifi scanner, http server & dns daemon living in the least amount of RAM possible.
For real time constrained applications, esp32-wifi-manager can live entirely on PRO CPU, leaving the entire APP CPU untouched for your own needs.
esp32-wifi-manager will automatically attempt to re-connect to a previously saved network on boot, and it will start its own wifi access point through which you can manage wifi networks if a saved network cannot be found and/or if the connection is lost.
esp32-wifi-manager is an esp-idf project that compiles successfully with the esp-idf 3.2 release. You can simply copy the project and start adding your own code to it.
Ther are effectively three different ways you can embed esp32-wifi-manager with your code:
Event callbacks are the cleanest way to use the wifi manager and that's the recommended way to do it. A typical use-case would be to get notified when wifi manager finally gets a connection an access point. In order to do this you can simply define a callback function:
void cb_connection_ok(void *pvParameter){
ESP_LOGI(TAG, "I have a connection!");
}
Then just register it by calling:
wifi_manager_set_callback(EVENT_STA_GOT_IP, &cb_connection_ok);
That's it! Now everytime the event is triggered it will call this function.
esp32-wifi-manager is MIT licensed. As such, it can be included in any project, commercial or not, as long as you retain original copyright. Please make sure to read the license file.