Hey All,I need your help regarding to the Java tools contained into TinyOS-1.x
Directory.I developed a Java App to read messages from serial Port, and I also
did a GUI in Java to Display the messages on it, but What I'm facing is thatthe
method messageReceived(int to, Message msg) is not being executed... because
the received packet is displayed on the Command line instead of the GUI.(I want
to redirect the received packet to the Graphical Interface)Please if someone is
can help me I could be very gratefull.my code simplified is:class MyDisplay{
protected MoteIF mote; public MyDisplay(){ mote = new
MoteIF(PrintStreamMessenger.err, group_id); mote.registerListener(new
MyMsg, new MessageReceive()); } class MessageReceive implements
MessageListener, ActionListener{ MyMsg msg; // my problem is
that this method is not executed... I don't know why... public
messageReceived(int id, Message message){ if(message instanceof
MyMsg){ msg = (MyMsg)message
jTextArea.append(msg.toString()); // here I expect the message to be displayed
on JTextarea.. }else throw new RuntimeException("unknown packet
type:" +message); } }}thanks in advance..-Antonio Gonga
_________________________________________________________________
PC Magazine’s 2007 editors’ choice for best web mail—award-winning Windows Live
Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HMWL_mini_pcmag_0707_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help