package ch.bfh.gr33nopo55um.enocean.test;

/**
 * Created by louisjustussiegrist on 27.01.17.
 */
public class Sender {
}

@@ -40,83 +40,2082 @@
 t;%0A%0A
-/**%0A * Created by louisjustussiegrist on 27.01.17.%0A */%0Apublic class Sender %7B
+import ch.bfh.gr33nopo55um.enocean.helper.ReadConfig;%0Aimport it.polito.elite.enocean.enj.link.EnJLink;%0Aimport it.polito.elite.enocean.protocol.serial.v3.network.packet.ESP3Packet;%0A%0Aimport java.io.IOException;%0A%0A/**%0A * Used for Testing telegrams%0A *%0A * @author louis%0A */%0Apublic class Sender %7B%0A%0A    public static void main(String args%5B%5D) %7B%0A%0A        ReadConfig readConfig = new ReadConfig();%0A        try %7B%0A            System.out.println(readConfig.readPropertyValue(%22serialPort%22));%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        EnJLink linkLayer = null;%0A        try %7B%0A            linkLayer = new EnJLink(readConfig.readPropertyValue(%22serialPort%22)%0A            );%0A        %7D catch (Exception e) %7B%0A            e.printStackTrace();%0A        %7D%0A        linkLayer.connect();%0A%0A        /*%0A        * Loop for masssending 0x55 000a 07 01 eb a50000000c019134fc00 01 ffffffff 3d 00 2f%0A        */%0A        for (int i = 0; i %3C 10; i++) %7B%0A            byte packetType = (byte)1;%0A            byte%5B%5D data = new byte%5B%5D %7B (byte)0xa5, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0c, (byte)0x01, (byte)0x91, (byte)0x34, (byte)0xfc, (byte)0x00 %7D;%0A            byte%5B%5D optData = new byte%5B%5D %7B (byte)0x01, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x3d, (byte)0x00 %7D;%0A%0A            ESP3Packet esp3Packet = new ESP3Packet(packetType, data, optData);%0A            esp3Packet.buildPacket();%0A            linkLayer.send(esp3Packet);%0A        %7D%0A%0A        /*%0A        * Loop for masssending 0x55 0007 07 01 7af6000022a13420 01 ffffffff 33 00 88%0A        */%0A        for (int i = 0; i %3C 10; i++) %7B%0A            byte packetType = (byte)1;%0A            byte%5B%5D data = new byte%5B%5D %7B (byte)0x7a, (byte)0xf6, (byte)0x00, (byte)0x00, (byte)0x22, (byte)0xa1, (byte)0x34, (byte)0x20 %7D;%0A            byte%5B%5D optData = new byte%5B%5D %7B (byte)0x01, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x33, (byte)0x00 %7D;%0A%0A            ESP3Packet esp3Packet = new ESP3Packet(packetType, data, optData);%0A            esp3Packet.buildPacket();%0A            linkLayer.send(esp3Packet);%0A        %7D%0A    %7D
 %0A%7D%0A

Add mass sending :octocat: