Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of NTPClient by
Revision 5:adfce3421f39, committed 2015-10-17
- Comitter:
- JackB
- Date:
- Sat Oct 17 23:09:52 2015 +0000
- Parent:
- 4:881559865a93
- Commit message:
- m_sock.bind(123)
Changed in this revision
| NTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
| NTPClient.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 881559865a93 -r adfce3421f39 NTPClient.cpp
--- a/NTPClient.cpp Sun Aug 05 16:10:57 2012 +0000
+++ b/NTPClient.cpp Sat Oct 17 23:09:52 2015 +0000
@@ -60,7 +60,7 @@
//Create & bind socket
DBG("Binding socket");
- m_sock.bind(0); //Bind to a random port
+ m_sock.bind(123); //Bind to a random port
m_sock.set_blocking(false, timeout); //Set not blocking
diff -r 881559865a93 -r adfce3421f39 NTPClient.h --- a/NTPClient.h Sun Aug 05 16:10:57 2012 +0000 +++ b/NTPClient.h Sat Oct 17 23:09:52 2015 +0000 @@ -33,7 +33,7 @@ #include "UDPSocket.h" #define NTP_DEFAULT_PORT 123 -#define NTP_DEFAULT_TIMEOUT 4000 +#define NTP_DEFAULT_TIMEOUT 8000 ///NTP client results enum NTPResult
