I suggest you look at the tinyos-help archives, at a thread from January 6th with the subject

[Tinyos-help] 'not connected' compiling error

Phil

On Jan 10, 2005, at 7:36 PM, Haodong Wang wrote:

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

-------

"We shall not cease from exploration
And the end of all our exploring
Will be to arrive where we started
And know the place for the first time."

- T. S. Eliot,  'Little Gidding'

_______________________________________________
Tinyos-users mailing list
[email protected]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to