Jasonchenlijian / FastBle

Android Bluetooth Low Energy (BLE) Fast Development Framework. It uses simple ways to filter, scan, connect, read ,write, notify, readRssi, setMTU, and multiConnection.
Apache License 2.0
5.28k stars 1.22k forks source link

发送失败: GattException{gattStatus=10} BleException { code=101, description='Gatt Exception Occurred! '} #571

Closed ulongx closed 1 year ago

ulongx commented 1 year ago

vivo vx23

连接成功后,停顿一段时间发送,无论间隔多长,都发送失败。找不到原因

     @Override
      public void onConnectSuccess(BleDevice bleDevice, BluetoothGatt gatt, int status) {
          mWaitDialog.dismiss();
          toast("连接成功");
          postDelayed(()->{
              sendToMessage(bleDevice,gatt);
          }, 9500L);

      }