Statistics: Posted by Blackfarmer — Sat Jun 20, 2015 6:01 pm
Statistics: Posted by ESP_Faye — Wed Jun 17, 2015 10:17 am
Statistics: Posted by SpenZerX — Wed Jun 17, 2015 2:20 am
Statistics: Posted by ESP_Faye — Tue Jun 16, 2015 2:43 pm
Code:
void ICACHE_FLASH_ATTR periodFnct0(void)
{
uint32_t sys_time = system_get_time();
printf("Timer Function 0 (Time: %d us)\n", sys_time);
if (wifi_station_get_connect_status() == STATION_GOT_IP)
{
uint32_t current_stamp = sntp_get_current_timestamp();
if (current_stamp != 0)
printf("sntp: %d, %s\n", current_stamp, sntp_get_real_time(current_stamp-21600));
}
}
correct:
Timer Function 0 (Time: 2146985873 us)
sntp: 1432866382, Thu May 28 20:26:22 2015
wrong:
Timer Function 0 (Time: -2146981423 us)
sntp: 1432862090, Thu May 28 19:14:50 2015
Statistics: Posted by Blackfarmer — Fri May 29, 2015 2:43 am
Statistics: Posted by Blackfarmer — Fri May 29, 2015 1:58 am
Statistics: Posted by ESP_Faye — Thu May 21, 2015 9:48 am
Statistics: Posted by Blackfarmer — Tue May 19, 2015 3:55 am