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
The goal is to use the SDK library instead of our own "home-brew" NTP implementation, which has several problems:
the NTP "benchmark" is useless and causes an infinite loop, where a coolboard that has had only one wifi with no no internet configured never can start an AP again without erasing the SPIFFS (@simon-lacool, told you this was a bad idea...)
using the SDK is so much better anyway: less code to maintain, probably more reliable, etc.
estimate: 2j
The goal is to use the SDK library instead of our own "home-brew" NTP implementation, which has several problems:
The approaches differ a lot:
Those differences create numerous caveats:
Way I see it, the algorithm should look like this:
bool ntpSynced = false
inCoolBoard.cpp
orCoolTime.cpp
NTP_SYNC_TIMEOUT
seconds (I think 10s) forntpSynced
to becometrue
ntpSync
is true: send MQTT messages, as we are certain the timestamp is correctntpSync
is false: bail out, as we can't handle anything good at this point before an RTC enhancement and a good error reporting funnelMust reads:
The text was updated successfully, but these errors were encountered: