25 lines
310 B
C
25 lines
310 B
C
#ifndef CLOCK_H
|
|
#define CLOCK_H
|
|
|
|
#include <Arduino.h>
|
|
|
|
void clockLoop();
|
|
|
|
bool isClockSet();
|
|
|
|
char *getClockStr(time_t epoch = 0);
|
|
|
|
char *getStartupStr();
|
|
|
|
time_t getUptimeSeconds();
|
|
|
|
char *getUptimeStr();
|
|
|
|
bool isCorrectTime(time_t now);
|
|
|
|
time_t clockCorrect(time_t t);
|
|
|
|
void clockCorrect(time_t *t);
|
|
|
|
#endif
|