Added setPoolServer IP
This commit is contained in:
parent
d7d8b4512b
commit
b5a611a270
@ -177,6 +177,11 @@ void NTPClient::setPoolServerName(const char* poolServerName) {
|
||||
this->_poolServerName = poolServerName;
|
||||
}
|
||||
|
||||
void NTPClient::setPoolServerIP(IPAddress poolServerIP) {
|
||||
this->_poolServerName = NULL;
|
||||
this->_poolServerIP = poolServerIP;
|
||||
}
|
||||
|
||||
void NTPClient::sendNTPPacket() {
|
||||
// set all bytes in the buffer to 0
|
||||
memset(this->_packetBuffer, 0, NTP_PACKET_SIZE);
|
||||
|
@ -44,6 +44,13 @@ class NTPClient {
|
||||
*/
|
||||
void setPoolServerName(const char* poolServerName);
|
||||
|
||||
/**
|
||||
* Set time server IP
|
||||
*
|
||||
* @param poolServerIP
|
||||
*/
|
||||
void setPoolServerIP(IPAddress poolServerIP);
|
||||
|
||||
/**
|
||||
* Set random local port
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user