I try to Compile the DS3232RTC library and receive this error:
Arduino/libraries/DS3232RTC/DS3232RTC.h:137:26: error: 'tmElements_t' has not been declared
static byte read(tmElements_t &tm);
^
Arduino/libraries/DS3232RTC/DS3232RTC.h:138:20: error: 'tmElements_t' has not been declared
byte write(tmElements_t &tm);
What can i do to fix this?
I am facing the same problem. Pls, tell me what have you did to fix this ?
I had this problem as well but resolved it by removing the #include
Add at the top of the sketch:
#include <Time.h>
#include <TimeLib.h>
#include <DS3232RTC.h>
I was facing this error too, when I had used PubSubClient library with sim800 library.
So, I included
in sim800.h file, and it started working.
Thanks a lot for your support.
Replacing
Time library call TimeLib library. But you can't delete Time.h files from your Library folder. Other Library in folder Time-Master call Time.h only.
Most helpful comment
Add at the top of the sketch: