A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.
Dependents: oldheating gps motorhome heating
ntpclient.c
00001 #include <stdbool.h> 00002 00003 #include "ntpclient.h" 00004 #include "clkgov.h" 00005 00006 bool NtpClientTrace = false; 00007 00008 uint64_t NtpClientQueryTime = 0; 00009 00010 void NtpClientTimeUpdateSuccessful() 00011 { 00012 NtpClientQueryStartInterval(NTP_QUERY_INTERVAL_NORMAL); 00013 ClkGovIsReceivingTime = true; 00014 } 00015 00016 void NtpClientInit() 00017 { 00018 NtpClientQueryStartInterval(NTP_QUERY_INTERVAL_INITIAL); 00019 ClkGovIsReceivingTime = false; 00020 }
Generated on Tue Jul 12 2022 18:53:40 by 1.7.2