Hello everyone,

I've been recently using the tinyos java toolchain for the tinyos-2.x and
noticed an apparent design flaw. The interface MoteIF exists to encapsulate
the low-level serial packets and give the developer only what he needs,
namely the data and message destination. What happens is that T2 introduced
the message source in the active message header, that information is VERY
useful, but we only have access to it in the lower level PacketListenerIF
which deals with bits and bytes.

I believe that since T2 now has the source in the header (before we had to
include it on the payload if needed) it should be provided by the
MessageListener interface as a parameter of the messageReceived method. I
have solved that problem for myself by extending the Receiver class, but
that could be a problem for more people too.

~Dimas~
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to