EspressifApp / EspBlufiForAndroid

EspBlufi is based on the BLUFI protocol, which connect with IOT devices for BLE data communication, realizes device config network, and custom data transmission and reception. EspBlufi is developed and maintained by Espressif Corp.
Other
322 stars 124 forks source link

调用negotiateSecurity方法协商加密时,有时会报错 #9

Closed Vickshine closed 2 years ago

Vickshine commented 5 years ago

调用negotiateSecurity方法协商加密时,有时会报错, __negotiateSecurity()中 devicePublicKey = mDevicePublicKeyQueue.take(); 这行有时会catch

EspressifApp commented 5 years ago

有 log 吗? 这句只会 catch InterruptedException, 是不是有其他地方调了close() ?

Vickshine commented 5 years ago

我是在onServicesDiscovered中 boolean requestMtu = gatt.requestMtu(MTU); 接收到onMtuChanged 事件后, 开始协商加密negotiateSecurity(),偶尔就会在 devicePublicKey = mDevicePublicKeyQueue.take();出错抛异常InterruptedException

XuXiangJun commented 4 years ago

请问现在还会有这个问题吗