Skip to content
Discussion options

You must be logged in to vote
* Am I reaching the bluetooth limit in this case, causing the messages to be cut off, or might something else be wrong with this implementation?

Probably a firmware limit. There is currently a 100? byte receive buffer, so if stdin.read() is not called fast enough, then data can be lost. Plus, there are additionally buffers in the Bluetooth chip that we don't have any control over, so if data is receive too fast, it can be dropped there too.

What does the response argument on write_gatt_char do?

It selects Write With Response or Write Without Response. This is a Bluetooth Low Energy protocol thing. The response is a BLE packet that acknowledges that the data was, in fact, received. Th…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Novakasa
Comment options

Novakasa Sep 10, 2021
Author Sponsor

Answer selected by Novakasa
Comment options

You must be logged in to vote
1 reply
@Novakasa
Comment options

Novakasa Sep 10, 2021
Author Sponsor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants