MeterLogger
|
Go to the source code of this file.
Functions | |
ICACHE_FLASH_ATTR void | init_unix_time (void) |
ICACHE_FLASH_ATTR uint32_t | get_unix_time (void) |
ICACHE_FLASH_ATTR uint32_t | get_uptime (void) |
ICACHE_FLASH_ATTR uint32_t get_unix_time | ( | void | ) |
Definition at line 55 of file unix_time.c.
References current_unix_time, and sntp_get_current_timestamp().
Referenced by en61107_received_task(), en61107_request_send(), kmp_received_task(), kmp_request_send(), and minute_timer_func().
ICACHE_FLASH_ATTR uint32_t get_uptime | ( | void | ) |
Definition at line 61 of file unix_time.c.
References current_unix_time, init_time, ntp_offline_second_counter, and sntp_get_current_timestamp().
Referenced by add_watchdog(), reset_watchdog(), and watchdog_timer_func().
ICACHE_FLASH_ATTR void init_unix_time | ( | void | ) |
Definition at line 37 of file unix_time.c.
References ntp_offline_second_counter, ntp_offline_second_counter_timer, ntp_offline_second_counter_timer_func(), NULL, os_timer_arm, os_timer_disarm, os_timer_func_t, os_timer_setfn, sntp_check_timer, sntp_check_timer_func(), sntp_init(), sntp_set_timezone(), and sntp_setservername().