Skip to content

Include disconnectedConnectionStatus in NotConnectedException #1154

Description

@curioustechizen

Currently on Android, when a connection failure happens, the NotConnectedException is thrown. However, this exception does not carry the underlying Gatt Status. See here.

This means clients have to rely on the StateDisconnected instead of examining the NotConnectedException to know the status. Would you consider including the Disconnected.Status as a parameter in NotConnectedException?

I could take a stab at a PR if this makes sense to you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions