public boolean readDescriptor(String serviceUUID,String characteristicUUID,String descriptorUUID){
  if (mBluetoothGatt == null) {
    Log.w(TAG,"BluetoothGatt is null");
    return false;
  }
  BluetoothGattService service=mBluetoothGatt.getService(UUID.fromString(serviceUUID));
  BluetoothGattCharacteristic characteristic=service.getCharacteristic(UUID.fromString(characteristicUUID));
  BluetoothGattDescriptor descriptor=characteristic.getDescriptor(UUID.fromString(descriptorUUID));
  return mBluetoothGatt.readDescriptor(descriptor);
}

public boolean readDescriptor ( String serviceUUID , String characteristicUUID , String descriptorUUID ) { if ( mBluetoothGatt == null ) { Log . w ( TAG , "BluetoothGatt is null" ) ; return false ; } BluetoothGattService service = mBluetoothGatt . getService ( UUID . fromString ( serviceUUID ) ) ; BluetoothGattCharacteristic characteristic = service . getCharacteristic ( UUID . fromString ( characteristicUUID ) ) ; BluetoothGattDescriptor descriptor = characteristic . getDescriptor ( UUID . fromString ( descriptorUUID ) ) ; return mBluetoothGatt . readDescriptor ( descriptor ) ; }
reads the value for a given descriptor from the associated remote device .
