
com.rapplogic.xbee.XBeeConnection Maven / Gradle / Ivy
package com.rapplogic.xbee;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* Represents a protocol independent connection to a XBee radio (e.g. could be a serial connection, socket, xmpp etc.)
* Important: The implementation must call this.notify() when new data is available; otherwise the XBee input stream thread
* will go into a forever wait.
*
* You must implement read(int) and available() on the InputStream and
*
* write(int) and flush() on the OutputStream
*
* It's recommended to implement close
*
* @author andrew
*
*/
public interface XBeeConnection {
public OutputStream getOutputStream();
public InputStream getInputStream();
public void close() throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy