// Path: src/main/java/com/rapplogic/xbee/XBeeConnection.java
// public interface XBeeConnection {
// 	public OutputStream getOutputStream();
// 	public InputStream getInputStream();
// 	public void close() throws IOException; 
// }


import com.rapplogic.xbee.XBeeConnection;
import com.rapplogic.xbee.api.*;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import java.io.IOException;
import java.net.SocketException;
import java.net.UnknownHostException;
package com.rapplogic.xbee.socket;



public class SocketXBeeExample {

	private final static Logger log = Logger.getLogger(SocketXBeeExample.class);
	
	public static void main(String[] args) throws UnknownHostException, XBeeException, IOException {
		PropertyConfigurator.configure("log4j.properties");
  
		try {
			// must disable start checks until bug fixed
			XBee xbee = new XBee(new XBeeConfiguration().withStartupChecks(false));
// Path: src/main/java/com/rapplogic/xbee/XBeeConnection.java
// public interface XBeeConnection {
// 	public OutputStream getOutputStream();
// 	public InputStream getInputStream();
// 	public void close() throws IOException; 
// }


// Path: src/main/java/com/rapplogic/xbee/socket/SocketXBeeExample.java
import com.rapplogic.xbee.XBeeConnection;
import com.rapplogic.xbee.api.*;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import java.io.IOException;
import java.net.SocketException;
import java.net.UnknownHostException;

package com.rapplogic.xbee.socket;



public class SocketXBeeExample {

	private final static Logger log = Logger.getLogger(SocketXBeeExample.class);
	
	public static void main(String[] args) throws UnknownHostException, XBeeException, IOException {
		PropertyConfigurator.configure("log4j.properties");
  
		try {
			// must disable start checks until bug fixed
			XBee xbee = new XBee(new XBeeConfiguration().withStartupChecks(false));
			xbee.initProviderConnection((XBeeConnection)new SocketXBeeConnection("pi", 9000));