File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,11 @@ void NTPClient::setPoolServerName(const char* poolServerName) {
181
181
this ->_poolServerName = poolServerName;
182
182
}
183
183
184
+ void NTPClient::setPoolServerIP (IPAddress poolServerIP) {
185
+ this ->_poolServerIP = poolServerIP;
186
+ this ->_poolServerName = NULL ;
187
+ }
188
+
184
189
void NTPClient::sendNTPPacket () {
185
190
// set all bytes in the buffer to 0
186
191
memset (this ->_packetBuffer , 0 , NTP_PACKET_SIZE);
Original file line number Diff line number Diff line change @@ -44,6 +44,11 @@ class NTPClient {
44
44
*/
45
45
void setPoolServerName (const char * poolServerName);
46
46
47
+ /* *
48
+ * Set time server IP address
49
+ */
50
+ void setPoolServerIP (IPAddress poolServerIP);
51
+
47
52
/* *
48
53
* Set random local port
49
54
*/
You can’t perform that action at this time.
0 commit comments