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
udp/ntp/ntpclient.c@200:5acbc41bf469, 2021-05-20 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu May 20 14:32:52 2021 +0000
- Revision:
- 200:5acbc41bf469
- Parent:
- 139:1f3641abc07f
Increased number of arp entries from 20 to 30 to accommodate the number of WIZ devices plus a few incoming port 80 calls from the internet.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 112:f8694d0b8858 | 1 | #include <stdbool.h> |
andrewboyson | 112:f8694d0b8858 | 2 | |
andrewboyson | 113:904b40231907 | 3 | #include "ntpclient.h" |
andrewboyson | 113:904b40231907 | 4 | #include "clkgov.h" |
andrewboyson | 112:f8694d0b8858 | 5 | |
andrewboyson | 113:904b40231907 | 6 | bool NtpClientTrace = false; |
andrewboyson | 112:f8694d0b8858 | 7 | |
andrewboyson | 139:1f3641abc07f | 8 | uint64_t NtpClientQueryTime = 0; |
andrewboyson | 139:1f3641abc07f | 9 | |
andrewboyson | 113:904b40231907 | 10 | void NtpClientTimeUpdateSuccessful() |
andrewboyson | 112:f8694d0b8858 | 11 | { |
andrewboyson | 113:904b40231907 | 12 | NtpClientQueryStartInterval(NTP_QUERY_INTERVAL_NORMAL); |
andrewboyson | 113:904b40231907 | 13 | ClkGovIsReceivingTime = true; |
andrewboyson | 112:f8694d0b8858 | 14 | } |
andrewboyson | 112:f8694d0b8858 | 15 | |
andrewboyson | 113:904b40231907 | 16 | void NtpClientInit() |
andrewboyson | 112:f8694d0b8858 | 17 | { |
andrewboyson | 113:904b40231907 | 18 | NtpClientQueryStartInterval(NTP_QUERY_INTERVAL_INITIAL); |
andrewboyson | 112:f8694d0b8858 | 19 | ClkGovIsReceivingTime = false; |
andrewboyson | 112:f8694d0b8858 | 20 | } |