Closed benreu closed 2 months ago
I think we could expose it again, @MartinMueller2003 anything that speaks against that ?
Fixed in PR:
Exposed WebServer, Added password support. #235
Thank you @MartinMueller2003
For anyone coming here with the error of server being private. You should now use:
ESPUI.WebServer()
Examples would be
AsyncElegantOTA.begin( ESPUI.WebServer() ); ESPUI.WebServer()->on( "/upload-config", HTTP_POST ...snip
Describe the bug ESPUI.server is now declared protected, used to be useful with
AsynElegantOTA.begin( ESPUI.server )
To Reproduce add this code to reproduce the behavior:
include
IPAddress
is your ESP32 IP address. You will get the error: 'AsyncWebServer* ESPUIClass::server' is protected within this contextExpected behavior AsyncElegantOTA used to work seamlessly with ESPUI
Desktop (please complete the following information): All desktops
Smartphone (please complete the following information): All smartphones
Additional info: I moved the ESPUI server variable back to public in the ESPUI.h and everything works as expected. Should I make a Pull Request with this change, or is there something I am overlooking?