Skip to content

Commit ff9775d

Browse files
committed
Merge branch 'sheffieldnick-ipaddress' - Manually resolving merge conflicts.
2 parents 18d4ac7 + 931c471 commit ff9775d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

NTPClient.cpp

100644100755
+7-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ NTPClient::NTPClient(UDP& udp, const char* poolServerName) {
3535
this->_poolServerName = poolServerName;
3636
}
3737

38-
NTPClient::NTPClient(UDP& udp, const char* poolServerName, long timeOffset) {
38+
NTPClient::NTPClient(UDP& udp, IPAddress poolServerIP) {
39+
this->_udp = &udp;
40+
this->_poolServerIP = poolServerIP;
41+
this->_poolServerName = NULL;
42+
}
43+
44+
NTPClient::NTPClient(UDP& udp, const char* poolServerName, int timeOffset) {
3945
this->_udp = &udp;
4046
this->_timeOffset = timeOffset;
4147
this->_poolServerName = poolServerName;

NTPClient.h

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class NTPClient {
3030
NTPClient(UDP& udp);
3131
NTPClient(UDP& udp, long timeOffset);
3232
NTPClient(UDP& udp, const char* poolServerName);
33+
NTPClient(UDP& udp, IPAddress poolServerIP);
3334
NTPClient(UDP& udp, const char* poolServerName, long timeOffset);
3435
NTPClient(UDP& udp, const char* poolServerName, long timeOffset, unsigned long updateInterval);
3536

0 commit comments

Comments
 (0)