printing on serial port instead of System.out
This commit is contained in:
parent
1246174525
commit
0845bf18d7
|
@ -115,14 +115,14 @@ public class RimeABC extends AbstractApplicationMote {
|
||||||
byte[] noHeader = new byte[packetData.length-2-1];
|
byte[] noHeader = new byte[packetData.length-2-1];
|
||||||
System.arraycopy(packetData, 2, noHeader, 0, noHeader.length);
|
System.arraycopy(packetData, 2, noHeader, 0, noHeader.length);
|
||||||
String test = new String(noHeader);
|
String test = new String(noHeader);
|
||||||
System.out.println(this + ": abc message received '" + test + "'");
|
log("abc message received '" + test + "'");
|
||||||
|
|
||||||
/* Turn on green LED */
|
/* Turn on green LED */
|
||||||
leds.setLED(ApplicationLED.LEDS_GREEN);
|
leds.setLED(ApplicationLED.LEDS_GREEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void sentPacket(RadioPacket p) {
|
public void sentPacket(RadioPacket p) {
|
||||||
System.out.println(this + ": abc message sent");
|
log("abc message sent");
|
||||||
requestImmediateWakeup(); /* Triggers execute method */
|
requestImmediateWakeup(); /* Triggers execute method */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue