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
Diff: udp/ntp.cpp
- Revision:
- 49:1a6336f2b3f9
- Parent:
- 48:952dddb74b8b
- Child:
- 50:492f2d2954e4
diff -r 952dddb74b8b -r 1a6336f2b3f9 udp/ntp.cpp --- a/udp/ntp.cpp Tue Oct 31 21:25:09 2017 +0000 +++ b/udp/ntp.cpp Thu Nov 02 08:10:55 2017 +0000 @@ -2,7 +2,7 @@ #include "log.h" #include "net.h" #include "action.h" -#include "ip6.h" +#include "ip6addr.h" #include "udp.h" #include "ar4.h" #include "ar6.h" @@ -218,7 +218,7 @@ { //Check if have IP, if not, then request it and stop NrNameToIp6(server, ip); - if (Ip6IsEmpty(ip)) + if (Ip6AddressIsEmpty(ip)) { NrMakeRequestForIp6FromName(server); //The request is only repeated if made after a freeze time - call as often as you want. return false;