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: " + "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
- 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);
//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>();
System.out.println("About to init");
sen.init();
-
+ System.out.println("Passed init!");
ZigbeeTest zTest = new ZigbeeTest();
-
+ System.out.println("ZigbeeTest created!");
sen.registerCallback(zTest);