Home/Support/Support Forum/How do I access Real-Time clock on the Xbee3 NB-IoT module ?

How do I access Real-Time clock on the Xbee3 NB-IoT module ?

0 votes
According to this> https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_features.htm%3FTocPath%3D_____2

Xbee3 cellular modules have a RTC. But I could not find any way to access it.

time.time() needs to connect to the network. But I need to start a timer before the module gets connected to the network. How do I do that?
asked Aug 13 in XBee3 Cellular by rajib New to the Community (5 points)

Please log in or register to answer this question.

1 Answer

0 votes
Hello!
You can use the time.ticks_ms() or time.ticks_us() to get the XBee's time since boot in milliseconds or microseconds respectively.
Other supported functions in the time module are described in the XBee MicroPython programming guide here:

https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_delay_timing.htm%3FTocPath%3DTime%2520module%2520example%253A%25C2%25A0get%2520the%2520current%2520time%7C_____3
answered Aug 14 by cevans New to the Community (1 point)
...