Hi All,
I have the following issue: My Arduino MKR WAN 1310 needs to know what time and date it is.
I have it successfully connected to the TTN, I can send and receive data - my cloud-dashboard shows the right values of the sent data - all fine and good.
But I need to syncronize the internal Time of the device to let it do things at a specific time.
ArduinoCloud.update();
Serial.print("Cloud Internal Time: ");
Serial.println(ArduinoCloud.getInternalTime());
Serial.print("Cloud Local Time: ");
Serial.print(ArduinoCloud.getLocalTime());
The upper code sniplet gives me that:
Cloud Internal Time: 1711756910
Cloud Local Time: 0
If you translate the Unix-Timestamp "1711756910" into a readable format you get:
30.03.2024 00:01:50.
The date is correct, but the time seems to be the runtime since last reset and not the actual time
Does Anyone have an idea, how I can sync the nodes time?
Or give me a hint where to search.
Thanks a lot in advace
Tillmann