Releases: gmag11/ESPNtpClient
Releases · gmag11/ESPNtpClient
Compatibility with latest ESP32 SDK
Bugfixes
Better connection handling
There has been some bugfixes to get a connection less prone to errors in case of unstable WiFi connection. This leads to better sync behaviour in general.
- Improve debug logging flexibility
- Added a method to configure offset average calculations from 1 to 5 rounds. This should improve sync stability and precision but has a performance cost
- Overall processing power needed has been reducing by increasing default timeouts and precision targets. You can tweak them if needed
- Other minor fixes
- Protect constant values if their names where already defines. This can be caused if you use TimeLib.h. This fixes #17
Custom date string format
Current release allows editing date formats with getTimeDateString
. Thanks @sensboston
Bug fix
Clock stability improvement
- Filter out responses from servers with values indicating they are not accurate enough. This leads to less imprecise clock adjustments.
- Add server time dispersion to event information
getTime()
is now public. Using it you can trigger NTP sync in any moment. But, as library does its work asynchronously you will have to way to sync event to ensure that clock has been adjusted. Use this method only if you know what you are doing
Bugfixes
Add average offset calculation
- Now time offset is calculated with 3 requests, averaging each result. This can be disabled if needed.
- Number of sync requests in case of desired accuracy is not reached is limited to 4 (by default)
- Big improvements on processor load efficiency
NTP event to string
- Simplify event conversion to string
Add micros() and millis() methods
New micros() and millis() method to easily synchronize user events