arduino-libraries / ArduinoBLE

ArduinoBLE library for Arduino
GNU Lesser General Public License v2.1
307 stars 205 forks source link

GATT client: support long reads #49

Open darkyen opened 4 years ago

darkyen commented 4 years ago

In my current setup I have a MKR 1010 acting as master, which is current reading from an iPad acting as a peripheral. On the apple side, the CBPeripheralDelegate expects the Central to read data in multiple attempts with different offsets for chunking, as of now I don't see a way to override the offset in the library. I would expect this to either be abstracted, or allow readValue to expose an offset.

sandeepmistry commented 4 years ago

Hi @darkyen,

Thanks for providing the details, I've updated the issue title accordingly. I've marked this as an enhancement.

My preference would be the first option, for the library to handle long reads transparently.

cc/ @gvarisco