Skip to content

36: Device Time

Device time information, if known. Currently the best available time will be provided. Moving forward we will be able to provide different times (GPS, GSM etc.)

FieldNameDescriptionType
5MethodRequest a service to be perform an action
Possible values:
  • 1: SET— Set one or more values that are provided in the message payload.
  • 2: GET— Get values for the associated message type.
  • 3: SUBSCRIBE— Subscribe to values for the associated message type. Can be used in conjunction with other header fields to define the subscription parameters, such as Interval, Duration, Timeout, Storage Level and Message Level. If no interval is provided, messages will be sent as and when new data is available. Some data, such as GPS position, may require a set interval to be provided.
  • 5: UNSUBSCRIBE— Unsubscribe from a previous subscription.
uint8
This is an extract of header fields that are relevant to this message type, you can find them all documented in the Headers section.

Payload

FieldNameDescriptionTypeUnit
1Unix TimeUnix timeuint32s since epoch
2YearYearuint16
3MonthMonthuint8
4DateDate in monthuint8
5WeekdayWeekday (0 = sunday, 1 = monday etc)uint8
6HourHouruint8
7MinuteMinuteuint8
8SecondSeconduint8

Examples

GET request for device time
Device Time response

Code

For convenience, the following constants can be used to reference this message type.