This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Read Single Value from an array

I'm using SD110, and in my application I have an array of 64, 32-bit integers.

Typically, the client will only need to read 1 of the 64 values, or write to one of the 64 values. Rather than passing the entire large block of data, when only 4 bytes are needed at any time, I've created a characteristic that has 5 bytes - the first byte is for the index in the array, the remaining 4 bytes are the value. This works well for writing - I write the index and value. The thing I can't figure out is how to read a value out of the array at a given index.

Is there a way to do this?

Parents Reply Children
No Data
Related