1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-06-14 18:00:40 +00:00

Add captive portal functionality, update examples and documentation.

This commit is contained in:
Nick Reynolds
2022-09-19 17:38:10 +01:00
parent 70acbc1d2f
commit e81cd1f7f5
7 changed files with 35 additions and 6 deletions

View File

@ -197,7 +197,7 @@ void setup(void)
if (WiFi.status() != WL_CONNECTED)
{
Serial.print("\n\nCreating hotspot");
ESPUI.captivePortal = true; //Configure ESPUI to be a captive portal only if the ESP is acting as a hotspot
WiFi.mode(WIFI_AP);
delay(100);
WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));