Skip to content

Conversation

@sorayaormazabalmayo
Copy link

This PR registers a ConnectionStatusChanged WinRT event handler on BluetoothLEDevice to detect abrupt disconnections. The handler resolves the current connection state and forwards it to a.connectHandler. The event token and handler are stored to allow proper unregistration during device teardown.

This PR registers a `ConnectionStatusChanged` WinRT event handler on
`BluetoothLEDevice` to detect abrupt disconnections. The handler
resolves the current connection state and forwards it to
`a.connectHandler`. The event token and handler are stored to allow
proper unregistration during device teardown.
Copy link
Member

@jagobagascon jagobagascon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and validated that we get notified when a device disconnects (either by us calling Disconnect(), or by the device losing connection).

@jagobagascon
Copy link
Member

Also, I think this fixes #331

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants