Tells the delegate that a local peripheral device received an Attribute Protocol (ATT) write request for a characteristic with a dynamic value.
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 4.0+
- Core Bluetooth
The peripheral manager that received the request.
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 you receive this callback, 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 you can’t fulfill an individual request, you shouldn’t 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