Sends an updated characteristic value to one or more subscribed centrals, via a notification or indication.
- iOS 6.0+
- macOS 10.9+
- UIKit for Mac 13.0+Beta
- 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, all subscribed centrals are updated. Centrals that have not subscribed to a characteristic’s value are ignored.
true if the update is successfully sent to the subscribed central or centrals.
false if the update is not 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 this delegate method is called, you may resend the update.