> > Hello, > > Could you please tell me the difference between "async event" and "event"? > When a "event" is executed? > > Thank you very much, > > Sofia
Is this with reference to CTP and congestion control? If then, you need to be more specific. For knowing about async events refer to the Tiny OS tutorial: http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson3.html Basically, an 'async' block of code is asynchronous. They are pieces of code(usually short) that can pre-empt other code. By 'event', I assume you mean an event handler. An 'event handler' is a piece of code that is executed when a particular event occurs( i.e signalled). For ex. if I set a timer to fire every 'n' seconds, every 'n' seconds the event: Timer.fired() will be signalled. I write an event handler: event result_t Timer.fired(){.........} that performs anything I want when the aforementioned timer fires. This is explained much better in the TinyOS tutorials: http://docs.tinyos.net/index.php/Modules_and_the_TinyOS_Execution_Model Regards, Bharat Naik.
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
