litesuits / litesuits/android-lite-bluetoothLE
小米手机写入数据 报错 101
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 971
- Forks
- 319
- PR merge metrics
- No merged PRs in 30d
Description
我遇到部分小米手机写入数据的时候,写入有时候一直失败。
调试显示是 BluetoothGatt 中的executeReliableWrite() 方法中返回 false,导致写入失败。日志显示
BleException { code=101, description='Initiated Exception Occurred! '}
其他手机没有改问题。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the write path that calls BluetoothGatt.executeReliableWrite() and review where BleException code 101 is produced. Reproduce the failure on the affected Xiaomi phones and compare it with a working phone. Done means the write no longer fails with code 101 on the affected devices, with the behavior verified against the existing flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100