Skip to content

Ability to read large data from offsets if requested from device#39

Open
brett-lynnes wants to merge 1 commit intonettlep:masterfrom
brett-lynnes:master
Open

Ability to read large data from offsets if requested from device#39
brett-lynnes wants to merge 1 commit intonettlep:masterfrom
brett-lynnes:master

Conversation

@brett-lynnes
Copy link
Copy Markdown

I encountered problems reading a 220 byte string on iOS. It worked fine on Android, and after debugging I found out that BlueZ is returning some pParameters in the Method callback, mainly "offset" appeared.

This is just a simple method to look for the "offset" parameter and also a piece of example code of it being applied. You should only need to call getOffsetFromParameters() if the data being returned (either byte array or c-string) can be pretty large. afaik iOS is the only OS that actually breaks reads up like this (at 184 byte intervals), everything else just uses the HCI automatic packet chunking (even my Galaxy S6 worked on data over 4Kbs).

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.

1 participant