Add setRetryInterval() method
This commit is contained in:
parent
ab157e8a77
commit
63f122946c
@ -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;
|
||||
}
|
||||
|
@ -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`
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user