RTCZero
RTCZero copied to clipboard
Using RTCZero and TimeLib.h doesn't compile
Any idea why it is not possible to use both libraries at the same time?
#include <TimeLib.h> #include <RTCZero.h> void setup() { } void loop() { }
Hi @dIoTte,
This is because TimeLib.h contains a file named Time.h which on case insensitive filesystems (used by default on Mac and Windows) conflicts with the POSIX time.h header the RTCZero library uses.
We could ask the TimeLib maintainers to rename the Time.h file via a pull request. @facchinm @cmaglie what do you think?
@sandeepmistry totally agree, but we should think about some sort of wrapper to avoid troubles for someone who includes Time.h
Hello everyone, is it still in the plan to fix this problem?
Thanks, Seb
2017-03-02 4:18 GMT-05:00 Martino Facchin [email protected]:
@sandeepmistry https://github.com/sandeepmistry totally agree, but we should think about some sort of wrapper to avoid troubles for someone who includes Time.h
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino-libraries/RTCZero/issues/28#issuecomment-283599655, or mute the thread https://github.com/notifications/unsubscribe-auth/AY3aCpILklH0SxHL2z8H6EfQqHxzaBCEks5rholbgaJpZM4MNwme .
@dIoTte I've opened to following issue to continue the discussion https://github.com/PaulStoffregen/Time/issues/74
Hi @dIoTte,
Based on the discussion in https://github.com/PaulStoffregen/Time/issues/74#issuecomment-300629882, @PaulStoffregen is not keen on removing Time.h from the TimeLib library for compatibility with older IDE versions.
As a work around, we would suggest you manually remove Time.h from <SKETCHBOOK>/libraries/Time/ if you wish to use both TimeLib and RTCZero in your sketch.
cc/ @cmaglie
Sorry, I´ve a problema with this library. When I use GMT-3 setup, the library Works well… but near mitnight, returns wrong day and time. Could you help me please. Thanks a lot
I have the same problem. So the solution is to manually remove Time.h from <SKETCHBOOK>/libraries/Time/?