}
/* New transmission */
int size = myMoteMemory.getIntValueOf("simOutSize");
if (!isTransmitting && size > 0) {
packetFromMote = new COOJARadioPacket(myMoteMemory.getByteArray("simOutDataBuffer", size));
if (packetFromMote.getPacketData() == null || packetFromMote.getPacketData().length == 0) {
logger.warn("Skipping zero sized Contiki packet (no buffer)");
myMoteMemory.setIntValueOf("simOutSize", 0);
mote.requestImmediateWakeup();