Clock Synchronization

Description.

Allows the CS to sync the host clock with the station

Important

The date time follows the ISO 8601 format and is a UTC time.

In python the ISO 8601 for UTC can be obtained as follows:

from datetime import datetime
datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ")

ClockSyncUpdate

Topic: josev/cs. Used to sync the host clock with the station

type

object

properties

  • id

type

string

format

uuid

  • name

const

clock_sync

  • type

const

update

  • data

type

object

properties

  • current_time

type

string

pattern

^\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}:\d{2}(\.\d{1,3})?([Zz]|([+-])\d{2}:\d{2})?$

format

date-time

Example:

{
    "id": "101d46c1-751e-4798-b491-d0210e3ce07e",
    "name": "clock_sync",
    "type": "update",
    "data": {"current_time": "2021-11-10T14:29:37Z"}
}