RTC Initialisng

  • Syncing the RTC to an ntp time server is great but I lose the time after a wdt. This means I can't date stamp any data acquired by the GPY between the wdt and the next ntp sync. I can sync the RTC locally with something like rtc.init((2020, 6, 15, 10, 29, 3, 0, 167)) but it's cumbersome to store the 8 parameters required. Is there not a way to initialise the RTC locally to an an epoch, which is presumably how the ntp sync works?

Log in to reply

Pycom on Twitter