Hi there,
I am using Time.h library to get the time from an NTP server and then convert it to integer for further manipulation. But the problem is that I don't know how to make Serial.print(day()); to an integer.
Whatever conversion I try I dont get the desired integer.
I give you the Time.h library so you can examine it if you want and help me through...
What I need to do is to have day() saved as another integer.
I cannot make any changes to it because when I call the function, it only prints the values to serial monitor.
I want to copy them to another integer so I can store it.
Just that.
(I try it like: int sdday=day(); but it doesn't saves anything to sdday.)