парсинг данных страниц в вебе и отправка виджетов в приложение

This commit is contained in:
Dmitry Borisenko
2022-02-13 00:40:15 +01:00
parent 09bbd96a63
commit ed78401762
8 changed files with 103 additions and 66 deletions

View File

@@ -17,14 +17,14 @@ void standWebServerInit() {
HTTP.send(200, "application/json", readFile(F("settings.json"), 20000));
});
HTTP.on("/errors.json", HTTP_GET, []() {
HTTP.send(200, "application/json", errorsHeapJson);
});
HTTP.on("/paramsh.json", HTTP_GET, []() {
HTTP.send(200, "application/json", paramsHeapJson);
});
HTTP.on("/errors.json", HTTP_GET, []() {
HTTP.send(200, "application/json", errorsHeapJson);
});
HTTP.on("/config.json", HTTP_GET, []() {
HTTP.send(200, "application/json", readFile(F("config.json"), 20000));
});