-
Notifications
You must be signed in to change notification settings - Fork 13.3k
former configTime
method no longer works.
#7141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting, this bug is in the example, not in the core. |
Perhaps, but there has been a regression because as I noted: "I discovered this when my own code for getting time via NTP stopped working after I updated to latest commit on master branch." So code that used to work with |
An MCVE would be great |
@whyameye Any news ? |
I confirm configTime error! Good version 2.6.3:
Broken version 2.7.0:
|
(edit: fixed) @dontsovcmc With your MCVE I get with current master (2.7.1+):
So it's working. However, these loops look suspicious:
If you need to wait until time is set, you can use a callback like in the provided example in something like:
with a functional :
|
Ok, I'll try callback and master branch. |
Please try and check with the callback and report. |
@whyameye Do you still have issues with the master branch ? |
Closing per fixed in current master. |
Basic Infos
Platform
Settings in IDE
Problem Description
configTime
appears to now have a new format for calls --- a welcome change. Unfortunately the previous format no longer works despite the documentation saying that it does.MCVE Sketch
using example included in core
NTP-TZ-DST.ino
, line 223 readsformer configTime is still valid...
which I interpret to mean://configTime(MYTZ, "pool.ntp.org");
//configTime(7 * 3600, 3600 / 2, "pool.ntp.org");
and the example should still work. It crashes instead. Decoded stack dump below.
I discovered this when my own code for getting time via NTP stopped working after I updated to latest commit on master branch.
Debug Messages
The text was updated successfully, but these errors were encountered: