rhummelmose / BluetoothKit

Easily communicate between iOS/OSX devices using BLE
Other
2.27k stars 267 forks source link

How to stop scanning after connected? #106

Closed Cipherdale closed 1 week ago

Cipherdale commented 3 years ago

Dear creator Thank you for making BluetoothKit framework, it's help me a lot

the library is work beautifully, but i have one question, how to stop scanning? im already success to send data from peripheral to central, i tried both method scan with duration, and scan continously, and everything work, but how to stop central from scanning, because it doesn't make a sense if central already connected with peripheral but central always scanning. Apologize if my English is bad.

my second question is (scan with duration) method automatically stop central from scanning after connected to peripheral? if yes, is peripheral will keep connected while scanning is stopped?

third question is, is (scan continously) method is created for always scanning? if is yes, is there anyway to stop scanning after connected to peripheral? if yes, is peripheral will keep connected while scanning is stopped?