player_device_req Struct Reference
Collaboration diagram for player_device_req:
Detailed DescriptionRequest/reply: (un)subscribe to a device.
This is the most important request! Before interacting with a device, the client must request appropriate access. Valid access modes are:
- PLAYER_OPEN_MODE : subscribe to the device. You will receive any data published by the device and you may send it commands and/or requests.
- PLAYER_CLOSE_MODE : unsubscribe from the device.
- PLAYER_ERROR_MODE : the requested access was not granted (only appears in responses)
To request access, send a PLAYER_PLAYER_REQ_DEV request that specifies the desired device address in the addr field and the desired access mode in access. Set driver_name_count to 0 and leave driver_name empty. The response will indicate the granted access in the access field and the name of the underyling driver in the driver_name field. Note that the granted access may not be the same as the requested access (e.g., if initialization of the driver failed).
|Address of the device. |
|The requested / granted access. |
|Length of driver name. |
|The name of the underlying driver. |
The documentation for this struct was generated from the following file: