manolofdez / AsyncBluetooth

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

Suggestion about CBConnectPeripheralOptionEnableAutoReconnect #40

Closed grhashmi5 closed 9 months ago

grhashmi5 commented 9 months ago

Hello, Apple has provided the option to auto-connect with the property CBConnectPeripheralOptionEnableAutoReconnect. However, I tried with your library with this property but I am getting an error "One or more parameters were invalid."

I guess we need to implement a delegate method as well to use this property. Here is the documentation for it. https://developer.apple.com/documentation/corebluetooth/cbconnectperipheraloptionenableautoreconnect?language=swift

Can you please include this in the library?

Thanks

manolofdez commented 9 months ago

Sure! I don't know if that's the reason why you're getting that "One or more parameters were invalid" though.