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.
Diff: ntp.cpp
- Revision:
- 2:06fa34661f19
- Parent:
- 0:09f915e6f9f6
- Child:
- 4:e076884ef8bd
diff -r 94282484baae -r 06fa34661f19 ntp.cpp
--- a/ntp.cpp Fri Apr 15 09:03:54 2016 +0000
+++ b/ntp.cpp Fri Apr 22 09:23:57 2016 +0000
@@ -5,6 +5,7 @@
#include "time.h"
#include "io.h"
#include "at.h"
+#include "cfg.h"
#define GET_TIME_INTERVAL 600
#define RETRY_INTERVAL 60
@@ -170,7 +171,7 @@
}
else
{
- AtConnectId(ID, "UDP", "192.168.1.3", 123, &packet, sizeof(packet), &NtpIdConnectStatus);
+ AtConnectId(ID, "UDP", CfgNtpIp, 123, &packet, sizeof(packet), &NtpIdConnectStatus);
}
}
static void incomingMain()