FastBle icon indicating copy to clipboard operation
FastBle copied to clipboard

Android Bluetooth Low Energy (BLE) Fast Development Framework. It uses simple ways to filter, scan, connect, read ,write, notify, readRssi, setMTU, and multiConnection.

Results 135 FastBle issues
Sort by recently updated
recently updated
newest added

1、搜索蓝牙后得到的蓝牙对象,在关闭手机蓝牙后,所有已搜索的蓝牙bleDevice下的BluetoothDevice 会变成空 2、关闭手机蓝牙,再次开启蓝牙后,重新连接成功后回调中bleDevice对象下的BluetoothDevice 对象为空 3、正常远距离断开重连是正常的 希望方便的时候帮忙分析一下原因 /// ///蓝牙连接 /// ///蓝牙设备 fun connect(bleDevice: BleDevice) { BleManager.getInstance().connect(bleDevice, object : BleGattCallback() { override fun onStartConnect() { println("---------------> onStartConnect") } override fun onConnectFail(bleDevice: BleDevice,...

if (ActivityCompat.checkSelfPermission(MainActivity.getContext(), Manifest.permission.BLUETOOTH_CONNECT) != PackageManager.PERMISSION_GRANTED) { } Never returns PERMISSION_GRANTED. My manifest looks like this: What might I be missing?

调试了一会儿,发现作者使用的mCharacteristic是空的,而不是从函数传入的。所以我就在BleManager.getInstance().notify这个函数里加上了characteristic;详情请看我改了哪些地方,跟着我改就可以了: ![image](https://github.com/Jasonchenlijian/FastBle/assets/74527591/ca6bcf02-bc25-4480-857b-2306a86b4006) ![image](https://github.com/Jasonchenlijian/FastBle/assets/74527591/ca19aed3-0cf9-4424-a14f-15b6f949b948) ![image](https://github.com/Jasonchenlijian/FastBle/assets/74527591/17f6bc5b-6797-4712-b464-a7a5aad8cd6e) ![image](https://github.com/Jasonchenlijian/FastBle/assets/74527591/36a02907-2baf-4fd1-83c6-7307ac3f6f9b) ![image](https://github.com/Jasonchenlijian/FastBle/assets/74527591/ccc3a16f-5b5b-4815-a4ea-1641bb909a4d) ![image](https://github.com/Jasonchenlijian/FastBle/assets/74527591/1778ec8e-c869-4e88-990a-7652ffe4f77a) ` BluetoothGattDescriptor descriptor = null; List descriptors = characteristic.getDescriptors(); for (BluetoothGattDescriptor desc : descriptors) { if (desc.getCharacteristic().getUuid().equals(formUUID(UUID_CLIENT_CHARACTERISTIC_CONFIG_DESCRIPTOR))) { descriptor = desc; break; }...

Sometimes it works, and sometimes I get a timeout/error. Is there a trick to setting it? Is there a maximum value? Thank you, Mike

https://github.com/buhuiming/BleCore

写入失败, 说是设备未连接 实际上设备的状态显示是连接的, 也能收到设备发送的notify 数据。

vivoV2241A搜索不到蓝牙设备

现在的版本是否支持外设模式