For a project i have to set a DateTime to be able so send the date/hour everytime my serial port will communicate.
I need to sync the date and hours with my serial port and use it in an autonomous way (i'll sync it every hour to avoid any error).
The problem is that I found the library DateTime.h / DateTimeString.h that should help me to do this BUT i can't install it... i tried many times by following the read.me text but when i compile, i get the error :
"Compilation Error for the board Arduino Nano"
Have you installed the library - is that the problem ( will it compile with an empty sketch with just libraries included)
Or is the problem your sketch ?
Yes library is intalled !
I got an error but my code don't use the lib at all, i just include the libs.
I got this error message : " \Arduino\libraries\DateTime\DateTime.cpp:15:20: fatal error: wiring.h: No such file or directory"
Maybe i need to install another lib to make it work ? But in the install folder nothing tell me to install anything else
Any idea what wiring.h is ?
So ! I found that DateTime is a very old library and i can fix this error by replacing the <wiring.h> in the class.cpp by <arduino.h>.
I also found the same library updated years ago
So i use the most recent library, installed it and it work ! Here the library i use now if it can help anyone !
Thanks for your time !!