Skip to content

Feature request: OnDisconnect callback #89

@jonipol

Description

@jonipol

Ability to provide a onDisconnect callback would be really useful. This way it would be much easier to detect if the connection to the camera has been lost unexpectedly.

The disconnection is clearly already detected on the sdk side as per the logs

[03-25 10:42:16.159]  10385 10424 V usb_device.cpp:0037:  read ret = -4, desc: LIBUSB_ERROR_NO_DEVICE
[03-25 10:42:16.160]  10385 10424 E io_device.cpp:0012:  failed to read data
[03-25 10:42:16.160]  10385 10424 W camera_impl.cpp:0093:  The device has been disconnected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions