litesuits / litesuits/android-lite-bluetoothLE

写数据的时候,会成功很多次

Open
#13 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
971
Forks
319
PR merge metrics
No merged PRs in 30d

Description

writeCharacteristic 这个发送成功以后,public void onSuccess(final BluetoothGattCharacteristic characteristic) 这个方法会执行好多次,打印的都是我发送的数据。
发送一次打印一次,发第二次的时候,会打印两次,发几次,打印几次

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing writeCharacteristic and the public onSuccess(BluetoothGattCharacteristic characteristic) callback to see how callbacks are registered and invoked across successive writes. Reproduce the reported behavior with one, then multiple sends; done means each send produces exactly one success callback and print.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.