We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30552d5 commit 99ae6c4Copy full SHA for 99ae6c4
examples/EspDateTime/EspDateTime.ino
@@ -19,11 +19,18 @@ void setup() {
19
}
20
21
timeClient.begin();
22
+ timeClient.setTimeOffset(10800); //GMT+3
23
timeClient.update();
24
25
26
void loop() {
27
28
+
29
+ /*
30
+ while(!timeClient.update()) {
31
+ timeClient.forceUpdate();
32
+ }
33
+ */
34
35
if (timeClient.isTimeSet()) {
36
unsigned long epochTime = timeClient.getEpochTime();
@@ -53,4 +60,4 @@ void loop() {
53
60
54
61
55
62
delay(1000);
56
-}
63
+}
0 commit comments