File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,10 @@ String NTPClient::getFormattedTime() {
128128 return hoursStr + " :" + minuteStr + " :" + secondStr;
129129}
130130
131+ void NTPClient::end () {
132+ this ->_udp ->stop ();
133+ }
134+
131135void NTPClient::sendNTPPacket () {
132136 // set all bytes in the buffer to 0
133137 memset (this ->_packetBuffer , 0 , NTP_PACKET_SIZE);
Original file line number Diff line number Diff line change @@ -67,4 +67,9 @@ class NTPClient {
6767 * @return time as raw seconds
6868 */
6969 unsigned long getRawTime ();
70+
71+ /* *
72+ * Stops the underlying UDP client
73+ */
74+ void end ();
7075};
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ NTPClient KEYWORD1
99#######################################
1010
1111begin KEYWORD2
12+ end KEYWORD2
1213update KEYWORD2
1314forceUpdate KEYWORD2
1415getDay KEYWORD2
You can’t perform that action at this time.
0 commit comments