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.)
Header
| Field | Name | Description | Type |
|---|---|---|---|
| 5 | Method | Request a service to be perform an action Possible values:
| uint8 |
Payload
| Field | Name | Description | Type | Unit |
|---|---|---|---|---|
| 1 | Unix Time | Unix time | uint32 | s since epoch |
| 2 | Year | Year | uint16 | |
| 3 | Month | Month | uint8 | |
| 4 | Date | Date in month | uint8 | |
| 5 | Weekday | Weekday (0 = sunday, 1 = monday etc) | uint8 | |
| 6 | Hour | Hour | uint8 | |
| 7 | Minute | Minute | uint8 | |
| 8 | Second | Second | uint8 |
Examples
GET request for device time
📡 Real example from RH2 ESP32 Toit on 2025-10-10This example is captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor, where Toit on the ESP32 make the request.
Device Time response
📡 Real example from RH2 P1 v2287 on 2025-10-10This example is captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor, where P1 responses to a request from Toit on the ESP32.
Code
For convenience, the following constants can be used to reference this message type.