CmdSetTime
CmdSetTime sets the time.
Field | Type | Label | Description |
automatic | CmdSetTime.Source |
set time automatically via GPS or NTP |
|
manual | Time |
set time manually to a specific value. Always set the time to the correct value. |
CmdSetTimeResponse
CmdSetTimeResponse is the response to a CmdSetTime call.
Field | Type | Label | Description |
time | Time |
time of the system when generating the response |
|
source | CmdSetTimeResponse.Source |
source used to set the time |
CmdSetTime.Source
A Source says which time source should be used to set the time
Name | Number | Description |
SOURCE_UNSPECIFIED | 0 |
|
SOURCE_GPS_OR_NTP | 1 |
set time via GPS if available, otherwise use NTP |
SOURCE_GPS | 2 |
set time via GPS |
SOURCE_NTP | 3 |
set time using NTP |
CmdSetTimeResponse.Source
Source tells which time source was used to set the time
Name | Number | Description |
SOURCE_UNSPECIFIED | 0 |
|
SOURCE_MANUAL | 1 |
time set using given time |
SOURCE_GPS | 2 |
time set using GPS |
SOURCE_NTP | 3 |
time set using NTP |