Add end() API
This commit is contained in:
parent
5eff0bd78e
commit
20bcfe4c6a
@ -128,6 +128,10 @@ String NTPClient::getFormattedTime() {
|
||||
return hoursStr + ":" + minuteStr + ":" + secondStr;
|
||||
}
|
||||
|
||||
void NTPClient::end() {
|
||||
this->_udp->stop();
|
||||
}
|
||||
|
||||
void NTPClient::sendNTPPacket() {
|
||||
// set all bytes in the buffer to 0
|
||||
memset(this->_packetBuffer, 0, NTP_PACKET_SIZE);
|
||||
|
@ -67,4 +67,9 @@ class NTPClient {
|
||||
* @return time as raw seconds
|
||||
*/
|
||||
unsigned long getRawTime();
|
||||
|
||||
/**
|
||||
* Stops the underlying UDP client
|
||||
*/
|
||||
void end();
|
||||
};
|
||||
|
@ -9,6 +9,7 @@ NTPClient KEYWORD1
|
||||
#######################################
|
||||
|
||||
begin KEYWORD2
|
||||
end KEYWORD2
|
||||
update KEYWORD2
|
||||
forceUpdate KEYWORD2
|
||||
getDay KEYWORD2
|
||||
|
Loading…
Reference in New Issue
Block a user