A port and bug fix of Alix955/code/ntp-client. The socket would hang as it was defined both with a timeout and as blocking.

Revision:
2:a3aec199dc7c
Parent:
1:099750f42b02
--- a/NTPClient.h	Fri Dec 07 13:07:56 2018 +0000
+++ b/NTPClient.h	Sun May 26 08:46:35 2019 +0100
@@ -4,8 +4,7 @@
 #include "mbed.h"
 //use nslookup 2.pool.ntp.org in cmd to find ip address
 
-//#define NTP_DEFULT_NIST_SERVER_ADDRESS "2.pool.ntp.org"
-#define NTP_DEFULT_NIST_SERVER_ADDRESS "109.74.206.120"
+#define NTP_DEFULT_NIST_SERVER_ADDRESS "0.pool.ntp.org"
 #define NTP_DEFULT_NIST_SERVER_PORT 123
 
 class NTPClient {