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.h@112:f8694d0b8858, 2019-01-21 (annotated)
- Committer:
- andrewboyson
- Date:
- Mon Jan 21 16:58:28 2019 +0000
- Revision:
- 112:f8694d0b8858
- Child:
- 113:904b40231907
Added NTP client into library. Added NTP multicast to client.
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 | 112:f8694d0b8858 | 3 | extern char NtpClientServerName[]; |
andrewboyson | 112:f8694d0b8858 | 4 | extern int NtpClientInitialInterval; |
andrewboyson | 112:f8694d0b8858 | 5 | extern int NtpClientNormalInterval; |
andrewboyson | 112:f8694d0b8858 | 6 | extern int NtpClientRetryInterval; |
andrewboyson | 112:f8694d0b8858 | 7 | extern int NtpClientOffsetMs; |
andrewboyson | 112:f8694d0b8858 | 8 | extern int NtpClientMaxDelayMs; |
andrewboyson | 112:f8694d0b8858 | 9 | |
andrewboyson | 112:f8694d0b8858 | 10 | extern bool NtpClientSendRequestsViaIp4; |
andrewboyson | 112:f8694d0b8858 | 11 | extern bool NtpClientTrace; |
andrewboyson | 112:f8694d0b8858 | 12 | extern uint32_t NtpClientServerIp4; |
andrewboyson | 112:f8694d0b8858 | 13 | extern char NtpClientServerIp6[]; |
andrewboyson | 112:f8694d0b8858 | 14 | |
andrewboyson | 112:f8694d0b8858 | 15 | extern int NtpClientInit(void); |
andrewboyson | 112:f8694d0b8858 | 16 | |
andrewboyson | 112:f8694d0b8858 | 17 | extern void NtpClientSetClockTime(uint64_t ori, uint64_t rec, int li); |
andrewboyson | 112:f8694d0b8858 | 18 | extern int NtpClientPollForPacketToSend(int type, void* pPacket, int* pSize); |