#[repr(C)]pub struct QarPeerDeviceIdentity {
pub header: QarStructureHeader,
pub category: QarDeviceCategory,
pub device_id: *const c_char,
pub device_family: *const c_char,
pub device_name: *const c_char,
}Expand description
@brief Extension: the device this application describes itself as.
Chain on QarPeerPresentation::header.next of QarOnboardInit or QarRejoinInit, or pass to qar_peer_update_device_identity(). Without it the application joins as a desktop PC with the fixed id of the host OS (“DesktopWindows” / “DesktopLinux”).
An application always joins as QAR_PEER_ROLE_SOURCE: it describes its
device, never its role. category must be QAR_DEVICE_CATEGORY_DESKTOP_PC,
QAR_DEVICE_CATEGORY_SERVER or QAR_DEVICE_CATEGORY_CAMERA; any other value is
refused with QAR_STATUS_PEER_DEVICE_CATEGORY_NOT_ALLOWED.
Ids and families are open UTF-8 strings (“Zed2i”, “Zed”), matched by
viewers against the hub’s device catalog. An id the catalog does not know
is fine: viewers fall back to the family, then to the category, and show
device_name.
Fields§
§header: QarStructureHeader< QAR_STRUCTURE_TYPE_PEER_DEVICE_IDENTITY
category: QarDeviceCategory< DESKTOP_PC, SERVER or CAMERA
device_id: *const c_char< required, non-empty; e.g. “LuxonisOakD”
device_family: *const c_char< optional (NULL = none); e.g. “Luxonis”
device_name: *const c_char< optional (NULL = none); e.g. “OAK-D”