Freigeben über


BluetoothGatt.BeginReliableWrite Method

Definition

Initiates a reliable write transaction for a given remote device.

[Android.Runtime.Register("beginReliableWrite", "()Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool BeginReliableWrite ();
[<Android.Runtime.Register("beginReliableWrite", "()Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.BeginReliableWrite : unit -> bool

Returns

true, if the reliable write transaction has been initiated

Attributes

Remarks

Initiates a reliable write transaction for a given remote device.

Once a reliable write transaction has been initiated, all calls to #writeCharacteristic are sent to the remote device for verification and queued up for atomic execution. The application will receive a BluetoothGattCallback#onCharacteristicWrite callback in response to every #writeCharacteristic(BluetoothGattCharacteristic, byte[], int) call and is responsible for verifying if the value has been transmitted accurately.

After all characteristics have been queued up and verified, #executeReliableWrite will execute all writes. If a characteristic was not written correctly, calling #abortReliableWrite will cancel the current transaction without committing any values on the remote device.

Java documentation for android.bluetooth.BluetoothGatt.beginReliableWrite().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to