peripheralManager(_:central:didUnsubscribeFrom:)
Tells the delegate that a remote central device unsubscribed from a characteristic’s value.
Declaration
optional func peripheralManager(_ peripheral: CBPeripheralManager, central: CBCentral, didUnsubscribeFrom characteristic: CBCharacteristic)Parameters
- peripheral:
The peripheral manager connected to the remote central.
- central:
The remote central device that subscribed to the characteristic’s value.
- characteristic:
The characteristic unsubscribed from.
Discussion
Core Bluetooth calls this method when a remote central device unsubscribes from the value of one of the local peripheral’s characteristics, by disabling notifications or indications on the characteristic’s value. When called, stop sending the subscribed central updates of updates to the characteristic’s value.