feat: implement system time synchronization, web server handlers, and clock application components

This commit is contained in:
dark98
2026-09-25 20:57:19 +01:00
parent 4bf31f908a
commit 59b0318579
11 changed files with 442 additions and 33 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
#include "web_server_pages.h"
#include "web_server_pages.h"
#include "sys_uart.h"
#include "esp_log.h"
#include "esp_http_server.h"
@@ -227,7 +227,7 @@ static const char SERIAL_HTML[] =
" }"
"});"
"log('[ABrobot Web Serial Connected on TX:GPIO21 / RX:GPIO20 (Internal Pull-Up Active)]\\n', 'log-sys');"
"pollData();"
"try{fetch('/time/sync?epoch='+Math.floor(Date.now()/1000));}catch(e){}pollData();"
"</script></body></html>";
static esp_err_t serial_page_get(httpd_req_t *request)