Android How to read BLE properties Readable Writable Notifiable GATT Characteristics
问题 How to read BluetoothGattCharacteristic properties like is characteristic Readable , Writable or Notifiable . 回答1: /** * @return Returns <b>true</b> if property is writable */ public static boolean isCharacteristicWritable(BluetoothGattCharacteristic pChar) { return (pChar.getProperties() & (BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE)) != 0; } /** * @return Returns <b>true</b> if property is Readable */ public static boolean