readValue(completionHandler:)
Reads the value for the characteristic.
Declaration
func readValue(completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func readValue() async throwsParameters
- completion:
The block executed after the request is processed.
- error
nilon success; otherwise, error object indicating the reason for failure.
Discussion
The value is available from the value property after completion of the request.