I am playing with built-in RTC module in R4WIFI. The RTC library provides following methods:
getDayOfMonth()
getMonth()
getYear()
getHour()
getMinutes()
getSeconds()
The RTCTime object contains DayOfWeek and yet there is no method
getDayOfWeek()
Has anyone figured out how to extract that information after executing
RTCTime currentTime;
RTC.getTime(currentTime);
From the currentTime RTCTime object?
C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\renesas_uno\1.0.2\cores\arduino/api/String.h:70:2: note: no known conversion for argument 1 from 'DayOfWeek' to 'const char*'
exit status 1
no matching function for call to 'arduino::String::String(DayOfWeek)'
DayOfWeek is a bit like Month. for instance
DayOfWeek has possible values of:
DayOfWeek::MONDAY
DayOfWeek::TUESDAY etc
While Month has possible vaues of :
Month::JANUARY
Month::FEBRUARY etc.
In the example that comes with library they show how to display the month in dec format:
Serial.print(Month2int(currentTime.getMonth()));
I cannot find much on Month2Int method. Without it I get the same error like for DayOfWeek