Open wzy888 opened 3 years ago
重连
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
本邮箱不作为工作生活用 请联系 @.***
anything new? i'm still having this issue, even with the delay added
一定要先订阅再去写入
onWriteFailure: BleException { code=102, description='gatt writeCharacteristic fail'}