共用方式為


CBPeripheral.WriteValue 方法

定義

多載

WriteValue(NSData, CBDescriptor)

data寫入指定的 descriptor 所識別的特性。

WriteValue(NSData, CBCharacteristic, CBCharacteristicWriteType)

寫入 data 指定 descriptor 之 所識別的特性,其中包含或不含回應。

WriteValue(NSData, CBDescriptor)

data寫入指定的 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

參數

data
NSData
descriptor
CBDescriptor
屬性

適用於

WriteValue(NSData, CBCharacteristic, CBCharacteristicWriteType)

寫入 data 指定 descriptor 之 所識別的特性,其中包含或不含回應。

[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

參數

data
NSData
characteristic
CBCharacteristic
屬性

適用於