Example usage for android.bluetooth BluetoothGatt executeReliableWrite

List of usage examples for android.bluetooth BluetoothGatt executeReliableWrite

Introduction

In this page you can find the example usage for android.bluetooth BluetoothGatt executeReliableWrite.

Prototype

public boolean executeReliableWrite() 

Source Link

Document

Executes a reliable write transaction for a given remote device.

Usage

From source file:com.google.android.apps.forscience.ble.MyBleService.java

void commit(String address) {
    BluetoothGatt bluetoothGatt = addressToGattClient.get(address);
    if (bluetoothGatt == null) {
        Log.w(TAG, "No connection found for: " + address);
        sendGattBroadcast(address, BleEvents.COMMIT_FAIL, null);
        return;// w w w  .j  a v  a 2s.  c  om
    }
    bluetoothGatt.executeReliableWrite();
}