ESPUI.server is now declared protected, previously public
benreu opened this issue · comments
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 <AsyncElegantOTA.h>
- AsyncElegantOTA.begin( ESPUI.server );
- Open your browser and go to http://IPAddress/update, where
IPAddress
is your ESP32 IP address.
You will get the error: 'AsyncWebServer* ESPUIClass::server' is protected within this context
Expected 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?
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