Instance Method

peripheral:didWriteValueForCharacteristic:error:

Tells the delegate that the peripheral successfully set a value for the characteristic.

Declaration

- (void)peripheral:(CBPeripheral *)peripheral didWriteValueForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error;

Parameters

peripheral

The peripheral providing this information.

characteristic

The characteristic containing the value.

error

The reason the call failed, or nil if no error occurred.

Discussion

Core Bluetooth invokes this method only when your app calls the writeValue:forCharacteristic:type: method with the CBCharacteristicWriteWithResponse constant specified as the write type. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.

See Also

Writing Characteristic and Descriptor Values

- peripheral:didWriteValueForDescriptor:error:

Tells the delegate that the peripheral successfully set a value for the descriptor.

- peripheralIsReadyToSendWriteWithoutResponse:

Tells the delegate that a peripheral is again ready to send characteristic updates.