一粒程序米

Results 1 issues of 一粒程序米

调试了一会儿,发现作者使用的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; }...