arduino-BLEPeripheral icon indicating copy to clipboard operation
arduino-BLEPeripheral copied to clipboard

[Question] Sending long string BLECharacteristic

Open jLynx opened this issue 3 years ago • 0 comments

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!

jLynx avatar Mar 28 '21 21:03 jLynx