Thank you to WizenedEE for your quick response. Using nested folders seems to have worked and the TimeAlarmsExample sketch seems to work correctly.
I also created a nested folder for the Time library, but when I run the TimeSerialDateStrings example sketch, the Arduino never grabs the time from my Mac. The sketch compiles and loads ok, but the serial monitor just gets the message “waiting for sync message” . I have made two modifications to the example sketch that I saw suggested in the forums:
- Changed the brackets (ie, <>) around the library calls to quotes (ie, “ “), for example: #include <Time.h> becomes #include “Time.h”
- Replaced the outdated Serial.print(TIME_REQUEST,BYTE); with Serial.write(TIME_REQUEST)
I see that the “definition” of setSyncProvider is in Time.cpp, but this compiles so I don’t know why the function is not grabbing the system time from my Mac.
Can anyone suggest a fix? I would like to be able to grab the full time, day, date info from the Mac, and eventually other info through the serial port (like emails, weather, etc), so I want to understand how to get the Arduino and Mac talking through the serial port.
Thanks.