use fetch and update js and add some buttons for webpage

This commit is contained in:
schmidtsi76327 committed 2021-07-22 03:42:51 +02:00
1 parent ca938ef3dd
commit 3145949020
3 files changed
+45 -28

No files matched your search

+4 -1
View File
@@ -36,7 +36,10 @@ auto HTTPServer::start() -> bool {
}
void HTTPServer::start_apps() {
// application handler
this->on("/action=s_oben", [this]() {
// treppe->setsensor("oben")
send(200, "text/plain", "accepted");
});
this->on("/update", HTTP_POST, [this]() {
if (args()) {