Invoked when an existing connection with a peripheral is torn down.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 4.0+
- Core Bluetooth
The central manager providing this information.
The peripheral that has been disconnected.
If an error occurred, the cause of the failure.
This method is invoked when a peripheral connected via the
connect method is disconnected. If the disconnection was not initiated by
cancel, the cause is detailed in
error. After this method is called, no more methods are invoked on the peripheral device’s CBPeripheralDelegate object.
Note that when a peripheral is disconnected, all of its services, characteristics, and characteristic descriptors are invalidated.