读取和写入操作时,Rxble发生129错误和133错误

Pre*_*jan 5 java android bluetooth-lowenergy rxandroidble

BleGattException - 在第一次读写操作期间发生,有时它读取和写入正确但在重新连接ble设备后得到此异常...

 if (bleManager.getMacAddress() != null && checkIsSameMac(peripheralModel.address) && bleManager.getConnectionSubscription() != null) {
        bleManager.getConnectionSubscription().flatMap(RxBleConnection::discoverServices)
                .observeOn(AndroidSchedulers.mainThread())
                .first() // Disconnect automatically after discovery
                .subscribe(swapScanResult -> {
                    Log.e("write and read", "discover success");
                    firstWriteCharacteristic(peripheralModel);
                }, this::onConnectionFailure);
Run Code Online (Sandbox Code Playgroud)