Unable to set system time

73 views Asked by At

I'm trying to synchronize multiple sensors as described in Movesense developer workshop (https://youtu.be/GGMXJ8FWMSw?t=4335) by setting the system time. For some reason the following method to set system time does not work and onPutResult gives me error.

 //Example value
 int64_t utcTimestamp = 1619510994204;

 asyncPut(WB_RES::LOCAL::TIME(), AsyncRequestOptions::Empty, utcTimestamp);

Is there some other way to do this?

1

There are 1 answers

0
analog On BEST ANSWER

Turns out I misread the documentations, time value must be passed as microseconds instead of milliseconds. Minimum time value is 1483228800000000 as answered here -> Movesense, setting the system time