I want my app could remove paired bluetooth devices. Becaues if device paried with iPhone, the device couldn't used for another device. I tried CBCentralManager cancelPeripheralConnection, but it doesn't work. they're still paired.
Or there's some other app still connected this server?
iPhone5,iOS7
cancelPeripheralConnection:
should work.When you connect with a peripheral (Bluetooth device) probably you are doing it in:
It is important to do it keeping the
peripheral
and thecentralManager
as a @property:Then:
And:
Then when the connection is successfully stablished, the central manager object calls:
centralManager:didConnectPeripheral:
After that you can call in your code:
You cannot unpair a device programmatically in iOS.
The
cancelPeripheralConnection
is only to disconnect your apps connection to the device.