Instance Method

writeValue:completionHandler:

Modifies the value of the characteristic.

Declaration

- (void)writeValue:(id)value completionHandler:(void (^)(NSError *error))completion;

Parameters

value

The new value.

completion

The block executed after the request is processed.

error

nil on success; otherwise, error object indicating the reason for failure.

See Also

Controlling a Characteristic

value

The current value of the characteristic.

- readValueWithCompletionHandler:

Reads the value for the characteristic.

- updateAuthorizationData:completionHandler:

Sets or clears authorization data used when writing to the characteristic.