sntp: obey KoD when using multiple servers

See bug #55253 (SNTP retry next server instantly result as a flood of NTP request).
Added 'sntp_getkodreceived()' to check the status.
This commit is contained in:
Simon Goldschmidt
2019-01-30 20:42:56 +01:00
parent 8e86555f93
commit 5666f305ce
3 changed files with 48 additions and 4 deletions

View File

@@ -57,6 +57,7 @@ u8_t sntp_enabled(void);
void sntp_setserver(u8_t idx, const ip_addr_t *addr);
const ip_addr_t* sntp_getserver(u8_t idx);
u8_t sntp_getkodreceived(u8_t idx);
#if SNTP_MONITOR_SERVER_REACHABILITY
u8_t sntp_getreachability(u8_t idx);