com.rapplogic.xbee
Interface XBeeConnection

All Known Implementing Classes:
RxTxSerialComm

public interface XBeeConnection

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

Method Summary
 void close()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 

Method Detail

getOutputStream

java.io.OutputStream getOutputStream()

getInputStream

java.io.InputStream getInputStream()

close

void close()