" bytes a time, but "+data.length+" bytes were sent");
int startAddr = Const.SHARED_MEM_REC_ADDRESS;
Simulation.Node node = (Simulation.Node) nodeMap.get(new Integer(nodeId));
if (node == null) Avrora.userError("Not a valid NodeID: "+nodeId);
Simulator sim = node.getSimulator();
BaseInterpreter interpreter = sim.getInterpreter();
interpreter.writeDataByte(startAddr++, Const.SIG_NODE_RECEIVE_DATA);
interpreter.writeDataByte(startAddr++, (byte) data.length);
for (int i = 0; i < data.length; i++){
interpreter.writeDataByte(startAddr++, data[i]);