Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: Set Osal Events

$
0
0

Hi my problem is:

1. I have to active a OsalEvent (I´m using SampleApp of Zstack), I´m doing that using: osal_set_event ( PUBLIC_task_id_contratador, EVENT_contratation_start). This event is in contratador.c file.


2. Once I active this event, inside of the event I have to do something like that:

if (events & EVENT_contratation_start){

        osal_set_event ( PUBLIC_task_id_comunicador, EVENT_comunication_start) // this event is in comunicador.c file

return ( events ^ EVENT_contratation_start);

}

3. Inside of comunicador.c file, I have to do a similar proccess.

Only the first event is set.

This is the problem.


Viewing all articles
Browse latest Browse all 116964

Trending Articles



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