FastBle
FastBle copied to clipboard
FastBle 写入异常Code= 102,如何解决?
onWriteFailure: BleException { code=102, description='gatt writeCharacteristic fail'}
重连
MTU没毛病的 ,要在订阅读写后,去申请完毕再 读写数据
onWriteFailure: BleException { code=102, description='gatt writeCharacteristic fail'}
一般在连接成功不能立马setMtu 或者立马 write 。 ble连接成功建立通信后要加个短暂的delay在setMtu或者write,不然会102。
插眼
A pause after detecting the device and connecting solves problem 102
onWriteFailure: BleException { code=102, description='gatt writeCharacteristic fail'}
哦 对的 所有蓝牙通病 100ms延迟
I met the same question; when I unbind a ble device, then try rebind to it; tips: 'wreite writeCharacteristic fai'; what should I do
本邮箱不作为工作生活用 请联系 @.***