-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
[configTime()]: Change of Server in not working! #5350
Comments
@d-a-v I explained over gitter that our configTime is a paper-thin wrapper around the sdk api for sntp. If something doesn't work, it's likely in the sdk and not in our core. Could you please confirm? |
Hi, what I have checked is that it is only possible to use one server. If you set the first server as non accessible (by a wrong ip or else) it will not work. |
After discussing with @d-a-v , and some investigation, it seems that the sntp api provided by Espressif, which is documented in their 2C NONOS API reference pdf, is not really theirs, but is rather directly a part of lwip that is exposed through the sdk headers. |
If I can support in a way let me know. |
Hi,
I have build a solution for me which could be a possible bugfix.
Are you interested in ?
Mit freundlichen Grüßen
Frank Häfele
… Am 20.11.2018 um 02:27 schrieb Develo ***@***.***>:
After discussing with @d-a-v , and some investigation, it seems that the sntp api provided by Espressif, which is documented in their 2C NONOS API reference pdf, is not really theirs, but is rather directly a part of lwip that is exposed through the sdk headers.
Given that we don't use the sdk's lwip, but rather have our own integration with our own lwip2, the issue could be in our own glue code, or even in lwip itself. Either way, it's on us to figure it out.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@hasenradball Contributions are always welcome. Please explain and/or make a PR with your proposal. |
Hi,
a direct pr I dont have because I actually don‘t know the root cause file.
But a proposal how the solution could be ...
Mit freundlichen Grüßen
Frank Häfele
… Am 28.11.2018 um 21:05 schrieb Develo ***@***.***>:
@hasenradball Contributions are always welcome. Please explain and/or make a PR with your proposal.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@hasenradball Thank you! |
I went into lwIP-v2 sources, and sadly, the fact is: currently, only one server is supported, that, per configuration file. @hasenradball thanks for pointing us into that issue! |
Hi, thank you for your anwser. Please can you give me a small hint how and where to select |
You can select which variant of lwip to use in the IDE, under Tools -> lwIP Variant |
Fixed by #5444, feedback is welcome. |
Hi,
I tried many examples the last month about the getting the time with the ESP8266.
I tried how fast are the timeservers switches to the next given one when the first is not accessible.
configTime() does not work correctely from my point of view, because if I do set the server1 to a value with is not available, I expected that the code would switch to the second and then to the third server.
But This does not happen!
Or does anyone know it better?
#######
The text was updated successfully, but these errors were encountered: