CBPeripheral.WriteValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WriteValue(NSData, CBDescriptor) |
Writes |
WriteValue(NSData, CBCharacteristic, CBCharacteristicWriteType) |
Writes |
WriteValue(NSData, CBDescriptor)
Writes data
to the characteristic that is identified by the specified descriptor
.
[Foundation.Export("writeValue:forDescriptor:")]
public virtual void WriteValue (Foundation.NSData data, CoreBluetooth.CBDescriptor descriptor);
abstract member WriteValue : Foundation.NSData * CoreBluetooth.CBDescriptor -> unit
override this.WriteValue : Foundation.NSData * CoreBluetooth.CBDescriptor -> unit
Parameters
- data
- NSData
- descriptor
- CBDescriptor
- Attributes
Applies to
WriteValue(NSData, CBCharacteristic, CBCharacteristicWriteType)
Writes data
to the characteristic that is identified by the specified descriptor
, with or without a response.
[Foundation.Export("writeValue:forCharacteristic:type:")]
public virtual void WriteValue (Foundation.NSData data, CoreBluetooth.CBCharacteristic characteristic, CoreBluetooth.CBCharacteristicWriteType type);
abstract member WriteValue : Foundation.NSData * CoreBluetooth.CBCharacteristic * CoreBluetooth.CBCharacteristicWriteType -> unit
override this.WriteValue : Foundation.NSData * CoreBluetooth.CBCharacteristic * CoreBluetooth.CBCharacteristicWriteType -> unit
Parameters
- data
- NSData
- characteristic
- CBCharacteristic
- Attributes