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