What is the best way to know on how a Bluetooth Device is already connected? I am using CBCentralManager to identify if the Bluetooth is Powered ON but I am unable to find out on how I can identify If a Bluetooth Device is already connected.
I am implementing routing of AVAudioSession Calls via a Connected Bluetooth device but AudioSession Category changes are getting called repeatedly due to which I am unable to find if a Bluetooth Device is connected or not. If anyone have tried to implement this behaviour, Your inputs might be helpful. Please share the information.
I am using
CBPeripheral.state == .connectedto check the state of the BLE device.From the documentation: