List of usage examples for android.bluetooth BluetoothGatt readDescriptor
public boolean readDescriptor(BluetoothGattDescriptor descriptor)
From source file:com.nbplus.iotapp.bluetooth.BluetoothLeService.java
public void readClientCharacteristicConfig(String address, BluetoothGattCharacteristic characteristic) { if (StringUtils.isEmptyString(address)) { Log.w(TAG, "Unknown address"); }/*from ww w . jav a 2s .c om*/ BluetoothGatt bluetoothGatt = mConnectedBluetoothGattMap.get(address); BluetoothGattDescriptor descriptor = characteristic .getDescriptor(UUID.fromString(GattAttributes.CLIENT_CHARACTERISTIC_CONFIG)); boolean readDescriptorResult = bluetoothGatt.readDescriptor(descriptor); Log.d(TAG, "readDescriptorResult = " + readDescriptorResult); }