dataChart.addDataSource(dss, "CPU", stats.getDataSource(cpu.getID(), MSP430.MODE_ACTIVE));
}
}
if (config.getPropertyAsBoolean("enableNetwork", false)) {
final NetworkConnection network = new NetworkConnection();
final RadioWrapper radioWrapper = new RadioWrapper(radio);
radioWrapper.addPacketListener(new PacketListener() {
public void transmissionStarted() {
}
public void transmissionEnded(byte[] receivedData) {
// System.out.println("**** Sending data len = " + receivedData.length);
// for (int i = 0; i < receivedData.length; i++) {
// System.out.println("Byte: " + Utils.hex8(receivedData[i]));
// }
network.dataSent(receivedData);
}
});
network.addPacketListener(new PacketListener() {
public void transmissionStarted() {
}
public void transmissionEnded(byte[] receivedData) {
// System.out.println("**** Receiving data = " + receivedData.length);
radioWrapper.packetReceived(receivedData);