From 066b3ec24ff712834bc595a901cf9b426d06bd16 Mon Sep 17 00:00:00 2001 From: Empire Date: Tue, 19 Dec 2023 10:45:56 +0100 Subject: [PATCH] play with config page --- rust/src/webserver/config.html | 73 +++++++++++++++++++++++++++++---- rust/src/webserver/webserver.rs | 1 - 2 files changed, 65 insertions(+), 9 deletions(-) diff --git a/rust/src/webserver/config.html b/rust/src/webserver/config.html index 6680e7c..60bf8f4 100644 --- a/rust/src/webserver/config.html +++ b/rust/src/webserver/config.html @@ -1,15 +1,72 @@ - - - - -

firmeware OTA v3

-
+ + + + + + +

firmeware OTA v3

+

-
- + + +

config

+
+ +
+ + + + \ No newline at end of file diff --git a/rust/src/webserver/webserver.rs b/rust/src/webserver/webserver.rs index 039fad7..f500c34 100644 --- a/rust/src/webserver/webserver.rs +++ b/rust/src/webserver/webserver.rs @@ -30,7 +30,6 @@ pub fn httpd(initial_config:bool) -> EspHttpServer<'static> { response.write(include_bytes!("ota.js"))?; return Ok(()) }).unwrap(); - server .fn_handler("/ota", Method::Post, |mut request| { let ota = OtaUpdate::begin();