Skip to content

Commit 8f22c7d

Browse files
committed
Correct typos in comments and documentation
1 parent b4dbfbd commit 8f22c7d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

NTPClient.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ bool NTPClient::update() {
128128

129129
unsigned long NTPClient::getEpochTime() const {
130130
return this->_timeOffset + // User offset
131-
this->_currentEpoc + // Epoc returned by the NTP server
131+
this->_currentEpoc + // Epoch returned by the NTP server
132132
((millis() - this->_lastUpdate) / 1000); // Time since last update
133133
}
134134

@@ -207,4 +207,4 @@ void NTPClient::sendNTPPacket() {
207207
void NTPClient::setRandomPort(unsigned int minValue, unsigned int maxValue) {
208208
randomSeed(analogRead(0));
209209
this->_port = random(minValue, maxValue);
210-
}
210+
}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ WiFiUDP ntpUDP;
2323
NTPClient timeClient(ntpUDP);
2424

2525
// You can specify the time server pool and the offset, (in seconds)
26-
// additionaly you can specify the update interval (in milliseconds).
26+
// additionally you can specify the update interval (in milliseconds).
2727
// NTPClient timeClient(ntpUDP, "europe.pool.ntp.org", 3600, 60000);
2828

2929
void setup(){
@@ -48,4 +48,4 @@ void loop() {
4848
```
4949
5050
## Function documentation
51-
`getEpochTime` returns the unix epoch, which are the seconds elapsed since 00:00:00 UTC on 1 January 1970 (leap seconds are ignored, every day is treated as having 86400 seconds). **Attention**: If you have set a time offset this time offset will be added to your epoch timestamp.
51+
`getEpochTime` returns the Unix epoch, which are the seconds elapsed since 00:00:00 UTC on 1 January 1970 (leap seconds are ignored, every day is treated as having 86400 seconds). **Attention**: If you have set a time offset this time offset will be added to your epoch timestamp.

examples/Advanced/Advanced.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const char *password = "<PASSWORD>";
1111
WiFiUDP ntpUDP;
1212

1313
// You can specify the time server pool and the offset (in seconds, can be
14-
// changed later with setTimeOffset() ). Additionaly you can specify the
14+
// changed later with setTimeOffset() ). Additionally you can specify the
1515
// update interval (in milliseconds, can be changed using setUpdateInterval() ).
1616
NTPClient timeClient(ntpUDP, "europe.pool.ntp.org", 3600, 60000);
1717

0 commit comments

Comments
 (0)