ntptask - the NTP daemon

This task is started automatically by the initialization code (if NTP synchronization is enabled in the board config). It should not be used or interacted with by the custom code, except in order to query the NTP status:

from ntptask import status
print('NTP status: ', status())

The status can be one of the following:

  • ‘disabled’ - the NTP daemon is disabled

  • ‘starting’ - the NTP daemon is starting up

  • ‘synched’ - the NTP daemon is up and running, the time has been synchronized.

  • ‘error: …’ - the last synchronization has failed. The daemon will try to synchronize again soon.

  • ‘died’ - the NTP daemon has died because of a fatal error.