-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
SNTP manual interval request in the application (IDFGH-337) #2277
Comments
@Trubochkin currently LWIP SNTP doesn't provide API to manually set the polling interval. However, you can change the polling interval by changing SNTP_UPDATE_DELAY in lwipopts.h, the default polling interval is 3600000 milliseconds. |
@Trubochkin Could you help share if any updates for this issue? Thanks. |
I'm just doing re-initialization https://github.com/Trubochkin/BLE-WiFi-Gateway/blob/e19b131202b30d53837ea74e309dee601084ee8e/components/f_sntp/f_sntp.c#L93 |
@Trubochkin You have an error in your code, you're busy waiting for sntp_enabled (probably a zealous ';' here). You probably need #2349 to be fixed too to avoid waiting 500ms for nothing, and instead be informed when the time has been changed. |
Hi @Trubochkin! We will add the Kconfig option to change |
Closes: espressif#2277 Closes: IDFGH-337
The SNTP component provides public methods sntp_init and sntp_stop, but does not provide the method sntp_request publicly. Also, I see that request interval is set by define. I need to set the request interval manually in my application. How can I do this?
The text was updated successfully, but these errors were encountered: