Full support for Athom WLED Music Controller

- athom_music_esp32_4MB_M bin
- show flashsize in info tab and /getflash
- support of their ir-remote (24-key music)

Not supported yet
- mac addres in AP name (need to experiment with WLED_AP_SSID_UNIQUE)
This commit is contained in:
Ewoud
2023-03-21 12:51:29 +01:00
parent 81fd9be03a
commit b271168f81
6 changed files with 2261 additions and 2225 deletions

View File

@@ -240,6 +240,11 @@ void initServer()
request->send(200, "text/plain", (String)ESP.getFreeHeap());
});
//WLEDMM and Athom
server.on("/getflash", HTTP_GET, [](AsyncWebServerRequest *request){
request->send(200, "text/plain", (String)ESP.getFlashChipSize());
});
server.on("/u", HTTP_GET, [](AsyncWebServerRequest *request){
if (handleIfNoneMatchCacheHeader(request)) return;
AsyncWebServerResponse *response = request->beginResponse_P(200, "text/html", PAGE_usermod, PAGE_usermod_length);