#include <TimeLib.h>
time_t tijd = 1710330000 + 7200; // Pas de UNIX timestamp aan en voeg 7200s toe voor GMT+2
void setup() {
Serial.begin(9600);
setTime(tijd); // Stel de tijd in op basis van de opgehaalde UNIX tijdstempel
}
void loop() {
// Print de huidige datum en tijd
Serial.print("Datum: ");
Serial.print(day());
Serial.print("-");
Serial.print(month());
Serial.print("-");
Serial.print(year());
Serial.print(" Tijd: ");
Serial.print(hour());
Serial.print(":");
Serial.print(minute());
Serial.print(":");
Serial.println(second());
delay(1000); // Wacht 1 seconde
}