Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CC2640R2F: sending multiple BLE packets problem

$
0
0

Part Number:CC2640R2F

Hello,

I want to send 5 BLE packets in a row with each packet being 20bytes. I am using Simple Peripheral project and I tried to wrote SimpleProfile_SetParameter()  five times in a row:

SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR1, length, pData1);

SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR1, length, pData2);

SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR1, length, pData3);

SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR1, length, pData4);

SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR1, length, pData5);

However I noticed only 4 packets were sent and the 5th one was not. Do I need to do any kind of check to make sure the previous packet was sent before I call the next function?

Thanks


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>