Completing ZigbeeTest with doorlock test
[iot2.git] / benchmarks / other / ZigbeeTest / ZigbeeTest.java
index a90b7b3..9fe8cbe 100644 (file)
@@ -33,13 +33,12 @@ public class ZigbeeTest implements MoistureSensorSmartCallback {
     public static void main(String[] args) throws UnknownHostException, SocketException, InterruptedException, IOException, IOException, RemoteException{
 
         String message = "type: policy_set\n";
     public static void main(String[] args) throws UnknownHostException, SocketException, InterruptedException, IOException, IOException, RemoteException{
 
         String message = "type: policy_set\n";
-        //message += "ip_address: " + "192.168.1.1\n"; // local ip address
-               message += "ip_address: " + "192.168.2.108\n"; // local ip address
+       message += "ip_address: " + "192.168.2.108\n"; // local ip address
         //message += "port: " + "5959\n";  // port number
         //message += "port: " + "5959\n";  // port number
-               message += "port: " + "5557\n";  // port number
+       message += "port: " + "5557\n";  // port number
         message += "device_address_long: " + "000d6f0003ebf2ee" + "\n";
         //DatagramPacket sendPacket = new DatagramPacket(message.getBytes(), message.getBytes().length, InetAddress.getByName("128.195.204.110"), 5005); // address and port of the gateway
         message += "device_address_long: " + "000d6f0003ebf2ee" + "\n";
         //DatagramPacket sendPacket = new DatagramPacket(message.getBytes(), message.getBytes().length, InetAddress.getByName("128.195.204.110"), 5005); // address and port of the gateway
-               DatagramPacket sendPacket = new DatagramPacket(message.getBytes(), message.getBytes().length, InetAddress.getByName("192.168.2.227"), 5005); // address and port of the gateway
+       DatagramPacket sendPacket = new DatagramPacket(message.getBytes(), message.getBytes().length, InetAddress.getByName("192.168.2.192"), 5005); // address and port of the gateway
 
         DatagramSocket socket = new DatagramSocket();
         socket.setSendBufferSize(4096);
 
         DatagramSocket socket = new DatagramSocket();
         socket.setSendBufferSize(4096);
@@ -51,7 +50,7 @@ public class ZigbeeTest implements MoistureSensorSmartCallback {
 
 
         //IoTDeviceAddress zigUdpAddr  = new IoTDeviceAddress("128.195.204.110", 5557, 5005,false,false);
 
 
         //IoTDeviceAddress zigUdpAddr  = new IoTDeviceAddress("128.195.204.110", 5557, 5005,false,false);
-               IoTDeviceAddress zigUdpAddr  = new IoTDeviceAddress("192.168.2.227", 5557, 5005,false,false);
+       IoTDeviceAddress zigUdpAddr  = new IoTDeviceAddress("192.168.2.192", 5557, 5005,false,false);
         IoTZigbeeAddress zigAddrLong = new IoTZigbeeAddress("000d6f0003ebf2ee");
 
         Set<IoTZigbeeAddress> zigSet = new HashSet<IoTZigbeeAddress>();
         IoTZigbeeAddress zigAddrLong = new IoTZigbeeAddress("000d6f0003ebf2ee");
 
         Set<IoTZigbeeAddress> zigSet = new HashSet<IoTZigbeeAddress>();
@@ -65,9 +64,9 @@ public class ZigbeeTest implements MoistureSensorSmartCallback {
         
         System.out.println("About to init");
         sen.init();
         
         System.out.println("About to init");
         sen.init();
-
+       System.out.println("Passed init!");
         ZigbeeTest zTest = new ZigbeeTest();
         ZigbeeTest zTest = new ZigbeeTest();
-
+       System.out.println("ZigbeeTest created!");
         sen.registerCallback(zTest);
 
 
         sen.registerCallback(zTest);