public class SerialMessageReceiver extends MessageReceiver
MSG_RAW_LOGGER, MSG_RX_LOGGER, running| Constructor and Description |
|---|
SerialMessageReceiver(NodeFactory nodeFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable() |
void |
enable() |
String |
getErrorInformation() |
protected void |
parseInput(InputStream input) |
void |
purgeOutputStream() |
void |
receive(InputStream input)
Receive messages from the configured port
|
addMessageListener, addNodeListener, clearMessageListeners, clearNodeListeners, fireAddress, fireBmAccessory, fireBmCv, fireBmRcPlus, fireBmXPom, fireBoosterCurrent, fireBoosterState, fireBoosterTemperature, fireBoosterVoltage, fireConfidence, fireCsAccessoryAck, fireCsAccessoryManual, fireCsDriveManual, fireCsProgState, fireCsRcPlusAcknowledge, fireCsState, fireDynState, fireSpeed, isEnabled, messageReceived, processMessages, removeMessageListener, removeNodeListener, removeOrphanNode, setIgnoreWrongMessageNumberpublic SerialMessageReceiver(NodeFactory nodeFactory)
public void enable()
enable in class MessageReceiverpublic void disable()
disable in class MessageReceiverpublic String getErrorInformation()
getErrorInformation in interface BidibMessageProcessorgetErrorInformation in class MessageReceiverpublic void purgeOutputStream()
public void receive(InputStream input)
protected void parseInput(InputStream input) throws IOException, ProtocolException
IOExceptionProtocolExceptionCopyright © 2015. All rights reserved.