What would be ideal function or api to use in order to add delay in the program flow ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
What would be ideal function or api to use in order to add delay in the program flow ?
Just put "ti_sysbios_knl_Task_sleep(10*100);" in "case GAP_LINK_ESTABLISHED_EVENT:" of SimpleBLECentral example and I can build project without problem.
case GAP_LINK_ESTABLISHED_EVENT:
{
gapEstLinkReqEvent_t *pPkt = (gapEstLinkReqEvent_t *) pMsg;
ti_sysbios_knl_Task_sleep(10*100);
if (pPkt->hdr.status == SUCCESS)
{
// Notify the Bond Manager of the connection
VOID GAPBondMgr_LinkEst(pPkt->devAddrType, pPkt->devAddr,
pPkt->connectionHandle, GAP_PROFILE_CENTRAL);
}
}
break;
By the way, I use BLE stack V2.1 and whcih BLE stack do you use?