com.rapplogic.xbee.api
Interface IXBee
- All Known Implementing Classes:
- XBee
public interface IXBee
XBee interface
- Author:
- andrew
open
void open(java.lang.String port,
int baudRate)
throws XBeeException
- Throws:
XBeeException
addPacketListener
void addPacketListener(PacketListener packetListener)
removePacketListener
void removePacketListener(PacketListener packetListener)
sendPacket
void sendPacket(XBeePacket packet)
throws java.io.IOException
- Throws:
java.io.IOException
sendPacket
void sendPacket(int[] packet)
throws java.io.IOException
- Throws:
java.io.IOException
sendAsynchronous
void sendAsynchronous(XBeeRequest xbeeRequest)
throws XBeeException
- Throws:
XBeeException
sendSynchronous
XBeeResponse sendSynchronous(XBeeRequest xbeeRequest,
int timeout)
throws XBeeTimeoutException,
XBeeException
- Throws:
XBeeTimeoutException
XBeeException
getResponse
XBeeResponse getResponse()
throws XBeeException
- Throws:
XBeeException
getResponse
XBeeResponse getResponse(int timeout)
throws XBeeException,
XBeeTimeoutException
- Throws:
XBeeException
XBeeTimeoutException
close
void close()
getCurrentFrameId
int getCurrentFrameId()
getNextFrameId
int getNextFrameId()
updateFrameId
void updateFrameId(int val)
isConnected
boolean isConnected()
clearResponseQueue
void clearResponseQueue()
collectResponses
java.util.List<? extends XBeeResponse> collectResponses(int wait,
CollectTerminator terminator)
throws XBeeException
- Throws:
XBeeException