if ( events & SAMPLEAPP_SEND_PERIODIC_MSG_EVT ) { // Send the periodic message //SampleApp_SendPeriodicMessage(); SampleApp_Send_P2P_Message();
// Setup to send message again in normal period (+ a little jitter) osal_start_timerEx( SampleApp_TaskID SAMPLEAPP_SEND_PERIODIC_MSG_EVT (SAMPLEAPP_SEND_PERIODIC_MSG_TIMEOUT + (osal_rand() & 0x00FF)) );