updateAuthorizationData(_:completionHandler:)
Sets or clears authorization data used when writing to the characteristic.
Declaration
func updateAuthorizationData(_ data: Data?, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func updateAuthorizationData(_ data: Data?) async throwsParameters
- data:
New authorization data to use. Pass
nilto remove authorization data. - completion:
The block executed after the request is processed.
- error
nilon success; otherwise, error object indicating the reason for failure.