We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78d4237 commit c4661d9Copy full SHA for c4661d9
NTPClient.cpp
@@ -181,6 +181,11 @@ void NTPClient::setPoolServerName(const char* poolServerName) {
181
this->_poolServerName = poolServerName;
182
}
183
184
+void NTPClient::setPoolServerIP(IPAddress poolServerIP) {
185
+ this->_poolServerIP = poolServerIP;
186
+ this->_poolServerName = NULL;
187
+}
188
+
189
void NTPClient::sendNTPPacket() {
190
// set all bytes in the buffer to 0
191
memset(this->_packetBuffer, 0, NTP_PACKET_SIZE);
NTPClient.h
@@ -44,6 +44,13 @@ class NTPClient {
44
*/
45
void setPoolServerName(const char* poolServerName);
46
47
+ /**
48
+ * Set time server IP
49
+ *
50
+ * @param poolServerIP
51
+ */
52
+ void setPoolServerIP(IPAddress poolServerIP);
53
54
/**
55
* Set random local port
56
0 commit comments