You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to do some time sensitive calculations. My calculations are to calibrate an RTC using NTP.
I'm finding the NTP events are only firing while I have the graphs page open. Once I change pages, it disables the events. How to I keep the NTP events firing?
Here is a snippet of code taken from my modified AsyncFSWebserver::begin
I'm trying to do some time sensitive calculations. My calculations are to calibrate an RTC using NTP.
I'm finding the NTP events are only firing while I have the graphs page open. Once I change pages, it disables the events. How to I keep the NTP events firing?
Here is a snippet of code taken from my modified AsyncFSWebserver::begin
if (_config.updateNTPTimeEvery > 0) { // Enable NTP sync
NTP.begin(_config.ntpServerName, _config.timezone / 10, _config.daylight);
NTP.setInterval(15, _config.updateNTPTimeEvery * 60);
NTP.onNTPSyncEvent ([&](NTPSyncEvent_t event) {
ntpEvent = event;
syncEventTriggered = true;
});
}
This works as long as I'm looking at the web page. (ie /events)
Once I leave that page (or close it) the events stop completely, including the NTP event..
The text was updated successfully, but these errors were encountered: