feat: implement system time synchronization, web server handlers, and clock application components
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user