Skip to content

Commit dc2b194

Browse files
committed
add a build in UI
1 parent 8ba253f commit dc2b194

File tree

5 files changed

+422
-5
lines changed

5 files changed

+422
-5
lines changed

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,18 @@ It is only made and tested it on my ESP32 Microcontroller.
2929

3030
### More detailed flow diagram
3131

32-
<img src="documentation/flow-diagram.png?raw=true" alt="Flow diagram" width="40%">
32+
<img src="documentation/flow-diagram.png?raw=true" alt="Flow diagram" width="40%" style="background-color: white">
3333

3434
## What do I need to do?
3535

36-
If you want to use this wifi manager, you have to create your own Web UI for it!
37-
It won't give you a premade styled UI to configure the SSID credentials.
36+
If you want to use this wifi manager, you can create your own Web UI or use a prebuild one available at `/wifi`!
37+
38+
## Build in UI
39+
40+
The UI route is only loaded to `/wifi` if you execute `attachUI()` inside your script.
41+
42+
<img src="documentation/ui.png?raw=true" alt="Build in UI" width="40%">
43+
3844

3945
## APIs
4046

documentation/ui.png

38 KB
Loading

examples/src/main.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @file basic-usage.cpp
44
* @brief Short minimal example to make use of the ESP32 Wifi Manager
55
* @author Martin Verges <[email protected]>
6-
* @copyright 2022
6+
* @copyright 2022-2025
77
*
88
* Licensed under CC BY-NC-SA 4.0
99
* (Attribution-NonCommercial-ShareAlike 4.0 International)
@@ -24,6 +24,7 @@ void setup() {
2424
WifiManager.startBackgroundTask(); // Run the background task to take care of our Wifi
2525
WifiManager.fallbackToSoftAp(true); // Run a SoftAP if no known AP can be reached
2626
WifiManager.attachWebServer(&webServer); // Attach our API to the Webserver
27+
WifiManager.attachUI(); // Attach the UI to the Webserver
2728

2829
// Run the Webserver and add your webpages to it
2930
webServer.on("/", HTTP_GET, [](AsyncWebServerRequest *request){

0 commit comments

Comments
 (0)