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.

Event Processing in Zstack



Hi, 

  I am working on an application based on SampleApp.   In my application, I need to send data from end devices to the coordinator periodically.  To do this, I am using a timer for the task.  But it doesn't work at all.  Currently, I have osal_start_timerEx( MyApp_TaskID, adc_event, 5000); in SampleApp_Init(), and I have

uint16 SampleApp_ProcessEvent( uint8 task_id, uint16 events )
{
  afIncomingMSGPacket_t *MSGpkt;
  .....
  HalLedSet ( HAL_LED_1, HAL_LED_MODE_ON );
  if ( events & adc_event) //SYS_EVENT_MSG
  {
   .....

When the timer expires, the given event, adc_event, is never set.  This SamppleApp_ProcessEvent is not even excuted.  How do I correctly implement a timer for event processing?   Thank you

Regards