Releases: gmag11/NtpClient
Bug fix
Platform.io dependencies
3.0.1-beta
Non blocking communication
Most library code has been rewritten.
ESP32 and ESP8266 only : Now NTP requests do not block your code while response is received.
Add bare simple example
NTPClientBasic is a basic example with minimum code possible to show how easy is integrating NTP sync in your projects.
Rest of code remains unchanged from last version.
Major update. More boards supported
All supported platforms have been integrated into same source code for better maintenability. This opens the possibility to improve sync mechanism to get higher precission.
Some parts of library interface have been changed. Although I've tried to mantain backwards compatibility you may find any discrepancy with former versions. If so, let me know. You don't need to change your existing code to use this version.
Now, library is compatible with Arduino with Ethernet shield, ESP8266, MKR1000 and ESP32. It should be compatible with WiFi shield for Arduino too, although I haven't tested it. I don't have a WiFi shield.
Better sync management for ESP8266
- BugFix: Fixed event triggering
- Added WifiConfig.h so example compilation works without needing to add your own file.
- Force sync trigger in case of time zone or daylight saving change
- BugFix: Time was not kept if NTP server was not reachable.
- BugFix: Time zone change is possible even if offline
- Improve ESP8266 example
Fix Arduino version
Added missing summertime()
function to check if time is inside DST period.
Added license info to AVR and MKR1000 examples
New features
- Add function to check summertime period of a given time or current time (if DST is enabled)
- Added license info
- Improve ESP8266 example
Bugfix. Event handler added
- 2.0.2 was not able to compile due to a bug in call to
TimeLib.h
functions. Fixed. - Added onNTPSync event handler to trigger a function every time a sync is initiated
Bug fixes and debug rewrite
NOTICE: Since this version library structure has had important changes. You need to make minor changes in your code but IDE will refuse to compile until you do it. Check latest included example.