Hi,
In my application, I will need a 500 bytes buffer from A/D converter and send them when the connection is established. I am currently building a application based on SimplePeripheral demo. I have changed the simpleGATTprofile.c code to test if it would be possible to create a characteristic value vector with 500 bytes length with the code below.
case SIMPLEPROFILE_CHAR1_UUID:
case SIMPLEPROFILE_CHAR2_UUID:
*pLen = 500;
pValue[0] = 1;
pValue[1] = 2;
pValue[2] = 3;
pValue[3] = 4;
pValue[4] = 5;
break;
Although, it hasn't worked.
I have noted that when *pLen is larger than 19 I always get the message in BTool that says: "ATTR_NOT_FOUND" when I tried to read the data with UUID = 0xFFF1 .
What is the maximum vector length that the protocol supports considering the characteristics value?
Is there some way to change it? If yes, how?
If I am not able to create a characteristics value vector length larger than 19, do you have any idea on how to buffer the A/D data and send them efficiently?
Looking forward to your reply
Sincerely
Frederico