|
|
|
@ -125,7 +125,7 @@ void loop() {
|
|
|
|
time_t now = time(nullptr);
|
|
|
|
time_t now = time(nullptr);
|
|
|
|
now = CentralEuropean.toLocal(now);
|
|
|
|
now = CentralEuropean.toLocal(now);
|
|
|
|
String time = String(ctime(&now));
|
|
|
|
String time = String(ctime(&now));
|
|
|
|
Serial.println(time);
|
|
|
|
DEBUG_PRINTLN(time);
|
|
|
|
time.trim();
|
|
|
|
time.trim();
|
|
|
|
time.substring(11,19).toCharArray(time_value, 10);
|
|
|
|
time.substring(11,19).toCharArray(time_value, 10);
|
|
|
|
int seconds = time.substring(17,19).toInt();
|
|
|
|
int seconds = time.substring(17,19).toInt();
|
|
|
|
|