1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-06-11 02:30:39 +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

@ -199,7 +199,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));

View File

@ -189,7 +189,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));
@ -256,7 +256,6 @@ void setup(void)
* since it is transmitted in cleartext. Just add a string as username and
* password, for example begin("ESPUI Control", "username", "password")
*/
ESPUI.begin("ESPUI Control");
}

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));