Hi,
I successfully modified the simpleBLEperipheral code to support two characteristic of 20 bytes. I changed char 5 to 20 bytes and made char 4 also 20 bytes. Then i tried (using periodic task) copying char 5 value to char 4 (which has notification enabled). All of these was default connection interval parameters. I was able to receive notification every 5 seconds. This notification would show all 20 bytes
Next I tried reducing the connection interval. Basically i was trying my code to get close to "
".
With all the trial and error, i ended up sending 12 bytes by calling periodictask every7ms and connection interval of 10ms, just as mentioned in the above example. When I try going beyond 12 bytes, i dont see anything on lightblue app.
I also looked into forum and found
. By this post i understood that we have to keep buffer full so that when the next connection event takes place it sends all the bytes.
Untill now i went step by step and it worked for me. I also noticed that in the 10ms 20bytes example there is no simpleGATTprofile.c attached. Am I missing something.
Please help.
Thanks