manolofdez / AsyncBluetooth

A small library that adds concurrency to CoreBluetooth APIs.
MIT License
160 stars 30 forks source link

Adding support for `registerForConnectionEvents` #53

Closed corujautx closed 1 month ago

corujautx commented 1 month ago

This adds support for registerForConnectionEvents in CentralManager which was missing in the original implementation.

Not sure if the way I did is a good idea (I went for the simplest route), might be the case it makes more sense to use together with connect or disconnect.

My use case is that we passively wait for reconnection using the library in our project when we restore the state or lose connection.

manolofdez commented 1 month ago

Looks great to me! Thanks for contributing!!