mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Improve wifi fallback
This commit is contained in:
parent
ea5614c700
commit
60af2bf399
14 changed files with 133 additions and 69 deletions
|
|
@ -9,13 +9,13 @@
|
|||
unsigned long Timestamp::epoch() {
|
||||
struct tm tmNow;
|
||||
time_t now;
|
||||
if(!getLocalTime(&tmNow)) return 0;
|
||||
if(!getLocalTime(&tmNow,50)) return 0;
|
||||
time(&now);
|
||||
return now;
|
||||
}
|
||||
time_t Timestamp::now() {
|
||||
struct tm tmNow;
|
||||
getLocalTime(&tmNow);
|
||||
getLocalTime(&tmNow,50);
|
||||
return mktime(&tmNow);
|
||||
}
|
||||
time_t Timestamp::getUTC() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue