Hello
Can someone tell me what timeStatus() returns?
A Serial.print of timeStatus() prints 2 every time.
I'm guessing it's a code, but I can't find any information on it in the library documentation.
My bit of code does does a setTime() to a current UNIX time immediately before, so time has been set.
I'm working through all the Time.h functions etc. to get a better feel for what it does
Thanks
/* time sync functions */
timeStatus_t timeStatus(); // indicates if time has been set and recently synchronized
void setSyncProvider( getExternalTime getTimeFunction); // identify the external time provider
void setSyncInterval(time_t interval); // set the number of seconds between re-sync
typedef enum {timeNotSet, timeNeedsSync, timeSet
} timeStatus_t ;
Thanks Bulldog
My grasp isn't up to enum yet but I'm guessing 0=timeNotSet, 1=timeNeedsSync, 2=timeSet
I had tried leaving out setTime() and got a 0
I had the same trouble with make and break
K added
I'm guessing 0=timeNotSet, 1=timeNeedsSync, 2=timeSet
That is correct.
Thanks PS