pi server realised
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user