events should only return SUCCESS or FAIL. Stuffing the data into a global of some kind is the one true way, because events are not called from a context that would know what to do with a return value anyway... Anything that uses the ADC dataReady() event would be a good example. MS
Philippe Habib wrote:
I am very new to TinyOS and I've got what may be very simple questions I hope I can get some guidance with. I am working on a component that will read some data from an MDA300 board and will signal an event when the data is available. The read will be caused by calling a read routine, which will signal the event when the read is done. What is the best way to get the data read back to the caller? A global? Can an event return a value? If the event returns a value, how is it read? Is there an example of this somewhere? Thank you. _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
