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

[Question] Sending long string BLECharacteristic #288

Open
jLynx opened this issue Mar 28, 2021 · 0 comments
Open

[Question] Sending long string BLECharacteristic #288

jLynx opened this issue Mar 28, 2021 · 0 comments

Comments

@jLynx
Copy link

jLynx commented Mar 28, 2021

Hi so I am still new to this and learning so forgive me if I have not understood something correctly.

I am trying to send a 80 character long string with BLECharacteristic.

My current code I have:

BLEService testService = BLEService("CCC0");
BLECharacteristic testCharacteristic = BLECharacteristic("CCC1", BLERead, "LSZ09ABBASETWFACUGBJYPN5Z042JK26X332H60JT58W16YCMTGG5F3B3YUAV5VASR0OH4NKGYXMUKBZ");

But when I request the value on my phone, I only get the first 20 characters which are LSZ09ABBASETWFACUGBJ

So my question is, what do I need to do in order to send the full string across?

Is there a way to do it in one go, or does it need to be broken up into multiple transmissions of 20 characters?

I have also seen something about changing the default MTU size from 20 to something higher, is this possible to do?

Thanks!

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