Contents

write

A property that indicates a peripheral can write the characteristic’s value, with a response to indicate that the write succeeded.

Declaration

static var write: CBCharacteristicProperties { get }

Discussion

If a characteristic has this property set, it returns an error to the central when it fails to write the characteristic’s value. This property allows writing values characteristic that are longer than those permitted by the writeWithoutResponse constant. Use the writeValue(_:for:type:) method of the CBPeripheral class to write to a characteristic’s value, using the CBCharacteristicWriteType.withResponse constant as the parameter for type.

See Also

Characteristic Properties