Instance Method


Tells the delegate that a remote central device subscribed to a characteristic’s value.


optional func peripheralManager(_ peripheral: CBPeripheralManager, central: CBCentral, didSubscribeTo characteristic: CBCharacteristic)



The peripheral manager connected to the remote central.


The remote central device that subscribed to the characteristic’s value.


The characteristic subscribed to.


Core Bluetooth invokes this method when a remote central device subscribes to the value of one of the local peripheral’s characteristics, by enabling notifications or indications on the characteristic’s value. When called, start sending the subscribed central updates as the characteristic’s value changes. To send updated characteristic values to subscribed centrals, use the updateValue(_:for:onSubscribedCentrals:) method of the CBPeripheralManager class.

See Also

Monitoring Subscriptions to Characteristic Values

func peripheralManager(CBPeripheralManager, central: CBCentral, didUnsubscribeFrom: CBCharacteristic)

Tells the delegate that a remote central device unsubscribed from a characteristic’s value.

func peripheralManagerIsReady(toUpdateSubscribers: CBPeripheralManager)

Tells the delegate that a local peripheral device is ready to send characteristic value updates.