Send an updated characteristic value to one or more subscribed centrals, using a notification or indication.
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 4.0+
- Core Bluetooth
The characteristic value you want to send via a notification or indication.
The characteristic whose value has changed.
A list of centrals (represented by
CBCentralobjects) that have subscribed to receive updates of the characteristic’s value. If
nil, the manager updates all subscribed centrals. The manager ignores any centrals that haven’t subscribed to the characteristic’s value.
This value is
true if the update is successfully sent to the subscribed central or centrals.
false if the update isn’t successfully sent because the underlying transmit queue is full.
You use this method to send updates of a characteristic’s value—through a notification or indication—to selected centrals that have subscribed to that characteristic’s value. If the method returns
false because the underlying transmit queue is full, the peripheral manager calls the
peripheral method of its delegate object when more space in the transmit queue becomes available. After you receive this delegate method callback, you may resend the update.