Invoked when a local peripheral device receives an Attribute Protocol (ATT) write request for a characteristic that has a dynamic value.
- iOS 6.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 4.0+
- Mac Catalyst 13.0+Beta
- Core Bluetooth
The peripheral manager providing this information.
A list of one or more
CBATTRequestobjects, each representing a request to write the value of a characteristic.
In the same way that you respond to a read request, each time this method is invoked, you call the
respond method of the
CBPeripheral class exactly once. If the
requests parameter contains multiple requests, treat them as you would a single request—if any individual request cannot be fulfilled, you should not fulfill any of them. Instead, call the
respond method immediately, and provide a result that indicates the cause of the failure.
When you respond to a write request, note that the first parameter of the
respond method expects a single
CBATTRequest object, even though you received an array of them from the
peripheral method. To respond properly, pass in the first request of the