草庐IT

关于android:无法从BLE设备读取特征值

NotabletoreadacharacteristicvaluefromBLEdevice我需要向AndroidBLE设备写入和读取特征值。我能写但不能读。这是我的写作方式:123456789101112131415161718192021publicvoidwriteCustomCharacteristic(intvalue){  if(mBluetoothAdapter==null||mBluetoothGatt==null){    Log.w(TAG,"BluetoothAdapternotinitialized");    return;  }  /*checkiftheservi