public final class Bidib extends AbstractBidib
DEFAULT_TIMEOUT| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected BidibMessageProcessor |
createMessageReceiver(NodeFactory nodeFactory) |
static BidibInterface |
getInstance() |
List<String> |
getPortIdentifiers() |
boolean |
isOpened() |
void |
open(String portName,
ConnectionListener connectionListener,
Set<NodeListener> nodeListeners,
Set<MessageListener> messageListeners,
Set<TransferListener> transferListeners,
Context context) |
void |
send(byte[] bytes)
Send the bytes to the outputstream.
|
void |
setResponseTimeout(int timeout)
Set the response timeout for the port.
|
getAccessoryNode, getBoosterNode, getCommandStationNode, getConnectionListener, getFirmwarePacketTimeout, getMessageReceiver, getNode, getNodeFactory, getResponseTimeout, getRootNode, initialize, registerListeners, setConnectionListener, setFirmwarePacketTimeout, setIgnoreWaitTimeoutprotected BidibMessageProcessor createMessageReceiver(NodeFactory nodeFactory)
createMessageReceiver in class AbstractBidibpublic static BidibInterface getInstance()
public void close()
public void open(String portName, ConnectionListener connectionListener, Set<NodeListener> nodeListeners, Set<MessageListener> messageListeners, Set<TransferListener> transferListeners, Context context) throws PortNotFoundException, PortNotOpenedException
public boolean isOpened()
public void send(byte[] bytes)
bytes - the bytes to sendpublic void setResponseTimeout(int timeout)
setResponseTimeout in interface BidibInterfacesetResponseTimeout in class AbstractBidibtimeout - the receive timeout to setCopyright © 2016. All rights reserved.