Skip to content

Commit 795755c

Browse files
authored
Merge pull request #38 from arduino-libraries/ping_ntp_changes
Change ntp/ping server to the arduino ones
2 parents 25c5b71 + ab0d6aa commit 795755c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GSMConnectionManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void GSMConnectionManager::check() {
142142
}
143143
debugMessage("Sending PING to outer space...", 2);
144144
int pingResult;
145-
pingResult = gprs.ping("google.com");
145+
pingResult = gprs.ping("time.arduino.cc");
146146
sprintf(msgBuffer, "GSM.ping(): %d", pingResult);
147147
debugMessage(msgBuffer, 2);
148148
if (pingResult < 0) {

src/utility/NTPUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class NTPUtils {
1515
unsigned long getTime();
1616
static bool isTimeValid(unsigned long time);
1717
private:
18-
const char* timeServer = "time.apple.com";
18+
const char* timeServer = "time.arduino.cc";
1919
const int NTP_PACKET_SIZE = 48;
2020
UDP& Udp;
2121
};

0 commit comments

Comments
 (0)