Commit Graph

3 Commits

Author SHA1 Message Date
Maxim Prokhorov
ef604ea848 api: workaround for espasyncwebserver vs. esp8266webserver includes
When building single source, enums for HTTP status codes have a name conflict.
ESP8266WebServer is included only in the OTA_WEB_SUPPORT=1 and WEB_SUPPORT=0,
so guard by checking for WEB_SUPPORT before including anything related to the async variant.
2021-09-03 15:23:19 +03:00
Maxim Prokhorov
a27b3feb98 ota: port config and changelog 2021-09-03 15:23:19 +03:00
Maxim Prokhorov
56f74cfee5 ota: additional code for when the web server support is disabled
Using Core's ESP8266WebServer + some additional handlers.
Includes barebones page, without authorization.

Allows to explicitly set OTA_WEB_SUPPORT=1 with the ESPURNA_CORE and still get a web page.
Around the same size as ArduinoOTA + MDNS, so it might also be a good
suggestion to disable those when web support is enabled.
2021-09-03 15:23:19 +03:00