小编Pre*_*jan的帖子

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

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)

java android bluetooth-lowenergy rxandroidble

5
推荐指数
0
解决办法
222
查看次数

标签 统计

android ×1

bluetooth-lowenergy ×1

java ×1

rxandroidble ×1