weliem / blessed-android

BLESSED, a Bluetooth Low Energy (BLE) library for Android
MIT License
557 stars 120 forks source link

[feature] make public stopAutoconnectScan #161

Closed paymicro closed 2 years ago

paymicro commented 2 years ago

I would like to stop auto connect in my code. When a user has several devices and needs to connect to one of them. When switching between them, auto-connection to the previous one must be disabled. Now I have to use reflection for this. Thanks.

weliem commented 2 years ago

In order to stop an autoconnect, just call cancelConnection()

paymicro commented 2 years ago

Thanks for the clarification, I didn't notice this possibility myself =)