BluetoothGatt.WriteCharacteristic 메서드

정의

오버로드

Name Description
WriteCharacteristic(BluetoothGattCharacteristic)

지정된 특성과 해당 값을 연결된 원격 디바이스에 씁니다.

WriteCharacteristic(BluetoothGattCharacteristic, Byte[], Int32)

지정된 특성과 해당 값을 연결된 원격 디바이스에 씁니다.

WriteCharacteristic(BluetoothGattCharacteristic)

지정된 특성과 해당 값을 연결된 원격 디바이스에 씁니다.

[Android.Runtime.Register("writeCharacteristic", "(Landroid/bluetooth/BluetoothGattCharacteristic;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool WriteCharacteristic(Android.Bluetooth.BluetoothGattCharacteristic? characteristic);
[<Android.Runtime.Register("writeCharacteristic", "(Landroid/bluetooth/BluetoothGattCharacteristic;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.WriteCharacteristic : Android.Bluetooth.BluetoothGattCharacteristic -> bool

매개 변수

characteristic
BluetoothGattCharacteristic

원격 디바이스에 쓸 특성

반품

쓰기 작업이 성공적으로 시작된 경우 true입니다.

특성

설명

지정된 특성과 해당 값을 연결된 원격 디바이스에 씁니다.

쓰기 작업이 완료되면 BluetoothGattCallback#onCharacteristicWrite 콜백이 호출되어 작업 결과를 보고합니다.

이 멤버는 더 이상 사용되지 않습니다. 기본 필드가 이 메서드 외부에서 변경될 수 있는 개체를 BluetoothGattCharacteristic 사용하므로 메모리가 안전하지 않으므로 사용합니다BluetoothGatt#writeCharacteristic(BluetoothGattCharacteristic, byte[], int).

에 대한 android.bluetooth.BluetoothGatt.writeCharacteristic(android.bluetooth.BluetoothGattCharacteristic)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상

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

반품

특성이 성공적으로 기록되었는지 여부

특성

설명

지정된 특성과 해당 값을 연결된 원격 디바이스에 씁니다.

쓰기 작업이 완료되면 BluetoothGattCallback#onCharacteristicWrite 콜백이 호출되어 작업 결과를 보고합니다.

에 대한 android.bluetooth.BluetoothGatt.writeCharacteristic(android.bluetooth.BluetoothGattCharacteristic, byte[], int)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상