Hi, I have a problem while using the event. My understanding is that you can define an event for an interface, such as SendMsg.sendDone(). When a user wants to use the interface SendMsg, the event handler SendMsg.sendDone() needs to be implemented. Also, an interface can define its own event. What is the difference for the code between these two cases? I noticed the key word "default" for the former case, that is the thing I need to take care when I design my own interface?
Now the real question comes. Currently I am doing some exercises in apps/TestTinyViz. I tried to modify FakeLocation module to be my module. I declare Location.locationDone event by putting "default" in front. And then I implement Location.locationDone even handler in TestTinyVizM.nc. The compile always reports errors like "previous declaration of `Location.locationDone'", I am confused. I only found the Location interface in apps/TestTinyViz, where the errors came from? Appreciate any comments. Thanks, HD Wang _______________________________________________ Tinyos-users mailing list [email protected] http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
