pi server realised

This commit is contained in:
2026-02-15 12:57:05 +09:00
parent 89f75c23ef
commit 9ca0227214
7 changed files with 197 additions and 1 deletions

View File

@@ -36,6 +36,15 @@ typedef struct {
uint8_t service_count;
uint32_t last_update; // timestamp from server
bool valid; // set true after first successful parse
/* Broken-down local time from Pi for RTC sync */
uint16_t time_year;
uint8_t time_month;
uint8_t time_day;
uint8_t time_hour;
uint8_t time_minute;
uint8_t time_second;
bool time_valid; // true when local_time object was parsed
} pi_stats_t;
typedef void (*ws_data_callback_t)(const pi_stats_t *stats);