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

Convenience function for auto chunking / dechunking of data #391

Open
GerTeunis opened this issue Dec 24, 2020 · 0 comments
Open

Convenience function for auto chunking / dechunking of data #391

GerTeunis opened this issue Dec 24, 2020 · 0 comments

Comments

@GerTeunis
Copy link

Describe the solution you'd like
As most protocol messages send over Bluetooth LE will not fit in the 20 bytes suggested max size of sending data to peripheral. Might it be handy to implement the chunking / detchunking on framework level? Both for with and without reponse writes. I.e. if last packet is < 20 bytes (or 0 bytes if exactly matches) it is considered finished.

Writing this chunking / dechunking is done over and over by every developer. Might be handy to provide this function to your users.

@GerTeunis GerTeunis changed the title Convenience function for auto chunking write (and read?) of writeData in Peripheral Convenience function for auto chunking / dechunking of data Dec 24, 2020
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

No branches or pull requests

1 participant