sntp_time.h
Functions
-
void lwip_sntp_set_timezone_offset(int32_t seconds)
-
void lwip_sntp_set_dst_enabled(bool enabled)
-
void lwip_sntp_set_time(uint32_t seconds)
-
void lwip_sntp_reset_flag(void)
-
bool lwip_sntp_time_was_set(void)
-
uint32_t lwip_sntp_get_unix_time(void)
Get current Unix timestamp from RTC.
- Returns:
Current time as Unix timestamp (seconds since Jan 1, 1970) Returns 0 if time has not been set via SNTP