peripheralManager(_:didReceiveRead:)
Tells the delegate that a local peripheral received an Attribute Protocol (ATT) read request for a characteristic with a dynamic value.
Declaration
optional func peripheralManager(_ peripheral: CBPeripheralManager, didReceiveRead request: CBATTRequest)Parameters
- peripheral:
The peripheral manager that received the request.
- request:
A Cbattrequest object that represents a request to read a characteristic’s value.
Discussion
When you receive this callback, call the respond(to:withResult:) method of the CBPeripheralManager class exactly once to respond to the read request.