Add setRetryInterval() method

This commit is contained in:
Dean Blackketter 2018-10-20 10:41:27 -07:00
parent ab157e8a77
commit 63f122946c
2 changed files with 9 additions and 0 deletions

View File

@ -194,6 +194,10 @@ void NTPClient::setUpdateInterval(int updateInterval) {
this->_updateInterval = updateInterval;
}
void NTPClient::setRetryInterval(int retryInterval) {
_retryInterval = retryInterval;
}
void NTPClient::setUpdateCallback(NTPUpdateCallbackFunction f) {
_updateCallback = f;
}

View File

@ -97,6 +97,11 @@ class NTPClient {
*/
void setUpdateInterval(int updateInterval);
/**
* Set the retry interval to another frequency in ms
*/
void setRetryInterval(int retryInterval);
/**
* @return time formatted like `hh:mm:ss`
*/