X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iot2.git;a=blobdiff_plain;f=benchmarks%2Fother%2FZigbeeTest%2FZigbeeTest_motion.java;h=b19eca912deba5cc3f0ba1ad64fb6b3622e4724b;hp=832e0be3442b2604728f78c5fd64884705e6a55b;hb=29139245e9e467770431976dae4bab726f08ccd1;hpb=85b13ca883c45bad3d45e4bc978793b5656cd9f4 diff --git a/benchmarks/other/ZigbeeTest/ZigbeeTest_motion.java b/benchmarks/other/ZigbeeTest/ZigbeeTest_motion.java index 832e0be..b19eca9 100644 --- a/benchmarks/other/ZigbeeTest/ZigbeeTest_motion.java +++ b/benchmarks/other/ZigbeeTest/ZigbeeTest_motion.java @@ -12,8 +12,8 @@ import java.rmi.RemoteException; public class ZigbeeTest_motion implements SmartthingsSensorCallback { public final int SOCKET_SEND_BUFFER_SIZE = 1024; public final int SOCKET_RECEIVE_BUFFER_SIZE = 1024; - private static final String MY_IP_ADDRESS = "192.168.2.108"; - public static final String DEVIDE_MAC_ADDRESS = "000d6f00057c92a7"; //motion + private static final String MY_IP_ADDRESS = "192.168.1.198"; + public static final String DEVIDE_MAC_ADDRESS = "000d6f000bbd5398"; //motion //000d6f000bbd5398 //000d6f00057c92a7 @@ -29,16 +29,17 @@ public class ZigbeeTest_motion implements SmartthingsSensorCallback { message += "ip_address: " + MY_IP_ADDRESS + "\n"; // local ip address message += "port: " + "5956\n"; // port number message += "device_address_long: " + DEVIDE_MAC_ADDRESS + "\n"; - DatagramPacket sendPacket = new DatagramPacket(message.getBytes(), message.getBytes().length, InetAddress.getByName("192.168.2.227"), 5005); // address and port of the gateway which means Raspberry PI's IP address + DatagramPacket sendPacket = new DatagramPacket(message.getBytes(), message.getBytes().length, InetAddress.getByName("192.168.1.192"), 5005); // address and port of the gateway which means Raspberry PI's IP address //DatagramSocket socket = new DatagramSocket(11222); - DatagramSocket socket = new DatagramSocket(12345); + DatagramSocket socket = new DatagramSocket(12345); socket.setSendBufferSize(4096); socket.setReceiveBufferSize(4096); socket.send(sendPacket); - socket.setReuseAddress(true); - socket.close(); + socket.setReuseAddress(true); + socket.close(); - IoTDeviceAddress zigUdpAddr = new IoTDeviceAddress("192.168.2.227", 5956, 5005,false,false); + //IoTDeviceAddress zigUdpAddr = new IoTDeviceAddress("192.168.2.227", 5956, 5005,false,false); + IoTDeviceAddress zigUdpAddr = new IoTDeviceAddress("192.168.1.192", 5956, 5005,false,false); IoTZigbeeAddress zigAddrLong = new IoTZigbeeAddress(DEVIDE_MAC_ADDRESS); Set zigSet = new HashSet();