简体   繁体   中英

Get list of currently connected devices to my iPhone

I want to get a list of the currently connected Bluetooth/BLE devices to my device. I tried to lock in Core Bluetooth documentation, but didn't find something that can help me with the task. Is it possible to get the list of the currently connected devices, and if so, which direction should I look in?

No such method is provided by Apple yet. But you can use

retrieveConnectedPeripherals(withServices serviceUUIDs: [CBUUID]) -> [CBPeripheral]

method of CBCentralManager class.

You can review this similar question for more details How get the list of paired bluetooth devices in swift?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM