Is it possible to change NTP sync interval at run time?

axellin
Posts: 56
Joined: Mon Sep 17, 2018 9:09 am

Is it possible to change NTP sync interval at run time?

Postby axellin » Sat Nov 16, 2019 3:24 am

Hi,
Currently the NTP sync is determinate by CONFIG_LWIP_SNTP_UPDATE_DELAY at compile time.
I'm wondering if it's possible to make the NTP sync interval to be run time configurable?
Is there any API to change the NTP sync interval at run time?

WiFive
Posts: 2939
Joined: Tue Dec 01, 2015 7:35 am

Re: Is it possible to change NTP sync interval at run time?

Postby WiFive » Sat Nov 16, 2019 10:59 pm

No, you would have to modify sntp code

Actually it is somewhat easier
https://github.com/espressif/esp-lwip/c ... 8894852a4b

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], viitana_2 and 12 guests