Insights Hub How can I sync my device time?

2021-07-16T13:08:27Z
Connectivity

Summary


Details

I have a device and the device uses the MindConnect Library to connect to MindSphere. Is there any kind of time synchronization built into the MindConnect Library?

Also how do the MindConnect boxes synchronize their time?

Solution

The time between server and MindConnect Library are almost fully synchronised. While getting the access token, there is EPOCH time returned in the response so you can set the device time with it. 

The function to get the latest time for token can be found on following documentation page:

https://developer.mindsphere.io/resources/mindconnect-lib-v4/doc/mcl_core/html/mcl__core_8h.html#a43bca51066086fbfcd866409c8b4928f 

Additionally, you can change Nanobox/IoT2040 time via USB Command. It is explained under chapter 5.5 on following URL: https://documentation.mindsphere.io/resources/pdf/getting-connected-en.pdf

Notes

KB Article ID# PL8529721

Contents

SummaryDetails

Associated Components

MindConnect IoT2040 Configuration MindConnect Library MindConnect Nano Configuration