only receiving 20 bytes at a time
Good day,
I am using your code library. (Thank you by the way for this, very helpful)
however I am having an issue when I get larger responses like 60bytes etc, the receive callback is only getting a byte array of 20 characters?
What could be causing this?
the default BLE payload size is 20 byte. Only some devices can handle larger size. This is negotiated during connection setup. Longer data is split into appropriate chunks.
I see that is very interesting.
Does the serial socket not buffer those 20byte segments back into a complete packet?
the bluetooth stack only knows about these 20byte packets. you have to reconstruct your logical request by knowing your protocol