小编bhu*_*ika的帖子

How to discover Bluetooth Classic device in iOS 13 using Core bluetooth Framework

I am trying to discover Bluetooth LE and Classic (BR/EDR) device using Core Bluetooth framework in my app which is running on iOS-13. But I am able to find only BLE devices.

How I can scan for Bluetooth Classic devices?

After initialising CBCentralManager and getting the state of CentralManager as powered on, I am scanning for peripheral devices by passing nil in Services and Options.

Code mentioned below :-

private var cbManager: CBCentralManager!

override func viewDidLoad() {
     super.viewDidLoad()
     cbManager = …
Run Code Online (Sandbox Code Playgroud)

bluetooth core-bluetooth swift ios13

6
推荐指数
1
解决办法
3237
查看次数

标签 统计

bluetooth ×1

core-bluetooth ×1

ios13 ×1

swift ×1