QarPeerDeviceIdentity Struct
Extension: the device this application describes itself as. More...
Declaration
Included Headers
Public Member Attributes Index
| QarDeviceCategory | category |
| const char * | device_family |
| const char * | device_id |
| const char * | device_name |
| QarStructureHeader | header |
Description
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.
Definition at line 1508 of file qar_streaming.h.
Public Member Attributes
category
|
DESKTOP_PC, SERVER or CAMERA
Definition at line 1511 of file qar_streaming.h.
device_family
|
optional (NULL = none); e.g. "Luxonis"
Definition at line 1513 of file qar_streaming.h.
device_id
|
required, non-empty; e.g. "LuxonisOakD"
Definition at line 1512 of file qar_streaming.h.
device_name
|
optional (NULL = none); e.g. "OAK-D"
Definition at line 1514 of file qar_streaming.h.
header
|
QAR_STRUCTURE_TYPE_PEER_DEVICE_IDENTITY
Definition at line 1510 of file qar_streaming.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.2.1 by Doxygen 1.9.8.