Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Correct offset handling in sendReceiveCustomData and set packageSize to 253 #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

m0this
Copy link

@m0this m0this commented Nov 4, 2024

Fixes #16

This PR addresses an issue in the sendReceiveCustomData function where data is repeatedly sent from offset 0 due to a missing update to the offset variable. The function now increments the offset by the chunk size in each iteration to ensure that data transmission progresses as intended.

Additionally, the packageSize has been set to 253 to ensure compatibility with iOS BLE limitations.

Fix Details:

  • Updated sendReceiveCustomData to increment offset after each data chunk.
  • Set packageSize to 253 to avoid iOS BLE packet size errors.

@ogabrielinacio
Copy link
Owner

@m0this thank for the PR, i will review that as soon as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data Repeatedly Sent from Offset 0 in sendReceiveCustomData Due to Missing Offset Update
2 participants