Time & Date Syncronisation of MKRWAN1310 over TTN

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

What do You think? Is it possible to extract the timestamp of a downlink-message and use that to sync the internal clock?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.