Changes

Jump to: navigation, search

B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt

1,176 bytes added, 08:11, 22 August 2014
beginReliableWrite()
=== beginReliableWrite() ===
 
; Description
: The method Initiates a reliable write transaction for the remote LE device.
: Once a reliable write transaction has been initiated, all calls to [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#writeValue.28ArrayBuffer_value.29|characteristic.writeValue()]] are sent to the remote device for verification and queued up for atomic execution. An Promise that carries the written value is returned in response to every [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#writeValue.28ArrayBuffer_value.29|characteristic.writeValue()]] call and the application is responsible for verifying whether the value has been transmitted accurately. After all characteristics have been queued up and verified, [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt#executeReliableWrite.28.29|executeReliableWrite()]] will execute all writes. If a characteristic was not written correctly, calling [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt#abortReliableWrite.28.29|abortReliableWrite()]] will cancel the current transaction without commiting any values on the remote LE device.
 
; Return
: A Promise to indicate whether the operation is resolved or rejected.
=== executeReliableWrite() ===
Confirm
891
edits

Navigation menu