For BLE.requestRead I noticed the documentation says:
Support for long reads is not implemented.
But what is a long read? I am trying to understand how many bytes I can pass at one time, or is this called multiple times for large data?
For BLE.requestRead I noticed the documentation says:
Support for long reads is not implemented.
But what is a long read? I am trying to understand how many bytes I can pass at one time, or is this called multiple times for large data?
The current max is about 22 bytes of data for a read if I recall. Maybe a few more, but I'd have to hack together a test. It's not much so avoid things like a string.
I was hoping for a byte array. Is all communication like that,or is it possible with another way?
I was trying to avoid notify
Notify has the same limit if I recall. They only thing you can do is break up your data into small pieces.
Oh, thats perfect, and indicate when im ready for more?
I havent tried using indicators yet
You could also use different characteristics for the different types of data. Say you have 6 values, use 6 different characteristics.
don't suppose you know how the companion app is able to send large data over? that would be interesting if I could use something like that
It's something you'd need to handle yourself between CIQ and the companion app.