Other Parts Discussed in Thread: BLE-STACK, CC2640
Hi All,
I am trying to create a service with a characteristic that has variable length, but most likely I am doing something wrong and I can not implement it correctly.
I declare the characteristics size to be 20 bytes, however I want to send data between the range of 3 to 20 bytes per connection interval.
From what I've seen that is feasible, but I can not find out how to declare the characteristic correctly in order to be able to send variable length data.
The master device, iOS app in this case,can already send variable length data and I can check the "len" variable at my xxxx_WriteAttCB function and proceed accordingly.
When I try to set some data with the xxxx_SetParameter function, I get an error regarding the size of the characteristic.
By using the Bluetooth Developer Studio and the TI plug in, I can see that apart from declaring the characteristics length I can also declare minimum value etc.
Is it possible to also do that with stack 1.3.0?
(No problem if I have to port to stack 1.4.0 or any other version)
Are there any sample projects that I can look for the correct implementation?
Thanks in advance for your help.
George