writeValue(_:completionHandler:)
Modifies the value of the characteristic.
Declaration
func writeValue(_ value: Any?, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func writeValue(_ value: Any?) async throwsParameters
- value:
The new value.
- completion:
The block executed after the request is processed.
- error
nilon success; otherwise, error object indicating the reason for failure.