DeviceIDMessage Struct
Device identifier information (MessageType::DEVICE_ID, version 1). More...
Declaration
Included Headers
Base struct
| struct | MessagePayload |
|
The base class for all message payloads. More... | |
Public Member Attributes Index
| DeviceType | device_type = DeviceType::UNKNOWN |
|
The type of device this message originated from. More... | |
| uint8_t | hw_id_length = 0 |
|
The length of the harware ID (in bytes). More... | |
| uint8_t | receiver_id_length = 0 |
|
The length of the GNSS receiver ID (in bytes). More... | |
| int64_t | system_time_ns = 0 |
|
The current system timestamp (in ns). More... | |
| uint8_t | user_id_length = 0 |
|
The length of the user specified ID (in bytes). More... | |
Public Static Attributes Index
| static constexpr MessageType | MESSAGE_TYPE = MessageType::DEVICE_ID |
| static constexpr uint8_t | MESSAGE_VERSION = 0 |
Description
Device identifier information (MessageType::DEVICE_ID, version 1).
This message contains ID fields for each of the following, where applicable.
- Hardware - A unique ROM identifier pulled from the device hardware (for example, a CPU serial number)
- User - A value set by the user to identify a device
- Receiver - A unique ROM identifier pulled from the GNSS receiver
The message payload specifies the length of each field (in bytes), and is followed by each of the ID values. ID values may be strings or binary, depending on the type of device (device_type). Strings are not null-terminated.
The following is an example of extracting the hardware and user IDs from a byte array containing the entire message (assuming both are strings for this example device):
Definition at line 178 of file device.h.
Public Member Attributes
device_type
|
The type of device this message originated from.
Definition at line 186 of file device.h.
hw_id_length
|
receiver_id_length
|
system_time_ns
|
user_id_length
Public Static Attributes
MESSAGE_TYPE
| constexpr static |
Definition at line 179 of file device.h.
MESSAGE_VERSION
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.