BluetoothGatt.WriteCharacteristic メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
WriteCharacteristic(BluetoothGattCharacteristic) |
古い.
指定された特性とその値を、関連付けられているリモート デバイスに書き込みます。 |
WriteCharacteristic(BluetoothGattCharacteristic, Byte[], Int32) |
WriteCharacteristic(BluetoothGattCharacteristic)
注意事項
deprecated
指定された特性とその値を、関連付けられているリモート デバイスに書き込みます。
[Android.Runtime.Register("writeCharacteristic", "(Landroid/bluetooth/BluetoothGattCharacteristic;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
[System.Obsolete("deprecated")]
public bool WriteCharacteristic (Android.Bluetooth.BluetoothGattCharacteristic? characteristic);
[<Android.Runtime.Register("writeCharacteristic", "(Landroid/bluetooth/BluetoothGattCharacteristic;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
[<System.Obsolete("deprecated")>]
member this.WriteCharacteristic : Android.Bluetooth.BluetoothGattCharacteristic -> bool
パラメーター
- characteristic
- BluetoothGattCharacteristic
リモート デバイスで書き込む特性
戻り値
書き込み操作が正常に開始された場合は true
- 属性
注釈
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。
適用対象
WriteCharacteristic(BluetoothGattCharacteristic, Byte[], Int32)
[Android.Runtime.Register("writeCharacteristic", "(Landroid/bluetooth/BluetoothGattCharacteristic;[BI)I", "", ApiSince=33)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public int WriteCharacteristic (Android.Bluetooth.BluetoothGattCharacteristic characteristic, byte[] value, int writeType);
[<Android.Runtime.Register("writeCharacteristic", "(Landroid/bluetooth/BluetoothGattCharacteristic;[BI)I", "", ApiSince=33)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.WriteCharacteristic : Android.Bluetooth.BluetoothGattCharacteristic * byte[] * int -> int
パラメーター
- characteristic
- BluetoothGattCharacteristic
- value
- Byte[]
- writeType
- Int32
戻り値
- 属性