Questions tagged [ntpclient]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
0 answers
1k views

How to correctly synchronize time with NTP server?

I want to synchronize time with NTP server once in some time. I am using DOIT ESP32 DEVKIT V1, I tried with getLocalTime() function but it returned true even without wifi, but as I know without wifi ...
hungryman's user avatar
2 votes
1 answer
243 views

How to attempt connection to WiFi only once?

I am working on a garden timer project, I connect to WiFi once and if its successful show time from NTPClient or else show time from RTC. I have been done the above, and it works in the sense that if ...
Coder9390's user avatar
  • 472
1 vote
2 answers
1k views

Passing variable into catch() exception

I'm working with a try{} catch(){} exception right now and I want to change a Variable. For this my board has to connect to the Internet and with a try{} statement it will try to do so. If it fails I ...
NE555's user avatar
  • 11
1 vote
0 answers
188 views

Exception 29 when trying to display NTP time on an LED

I'm currently working with a "WEMOS D1 R2 & mini" and am trying to call the time from an NTP server and display it onto an OLED display. I've been stuck on an error code that I can't ...
David C's user avatar
  • 11
0 votes
1 answer
640 views

(Why is) getLocalTime() on ESP32 taking several seconds to complete successfully

This is a cross-post from https://github.com/espressif/arduino-esp32/discussions/8653 as it didn't yield any results there. I noticed that getLocalTime() is consistently taking 5-10+ seconds to ...
Marcel Stör's user avatar
0 votes
1 answer
671 views

Error using `NtpClientLib.h`

Since Core of ESP8266 upgraded to v.3.0 (now it is 3.0.2), I encounter errors using this library. First, the deprecation of byte to uint8 (hoped that an upgrade of NTP lib to 3.0.2 beta will solve it )...
guyd's user avatar
  • 1,033
0 votes
1 answer
342 views

ESP32, NTP and SW reset

After HW reset (button or power reconnect) I get the correct NTP shift, but when I use ESP.restart() via MQTT I get the correct time without 3 3 HRS shift due to Tz. What happens after SW reset that ...
guyd's user avatar
  • 1,033