SerialMsgManager Class Reference
Class which manages the logic relative to send/receive messages via serial port This class implements all the logic necessary to queue messages, to retry sends or to discard messages.
#include <serialMsgManager.h>
Inheritance diagram for SerialMsgManager:

Public Member Functions | |
| SerialMsgManager (std::string port, int baudrate) | |
| bool | startCommunications () |
| bool | rebootCommunications () |
| Method to be called when maximum consecutive errors have been reached. More... | |
| bool | isPortOpened () |
| void | stopCommunications () |
Public Member Functions inherited from MessageManager | |
| boost::system::error_code | subscribe (MessageManagerObserver *observer) |
| boost::system::error_code | unsubscribe (MessageManagerObserver *observer) |
| boost::system::error_code | sendAsync (const Transaction &transaction) |
| boost::system::error_code | sendSync (Transaction &transaction) |
Additional Inherited Members | |
Static Public Member Functions inherited from MessageManager | |
| static std::string | stringToHex (const std::string &input, bool printAsciiChar) |
Protected Member Functions inherited from MessageManager | |
| void | receivedMessage (const char *data, size_t size) |
| Method for notify received messages. More... | |
| virtual boost::system::error_code | receiveUntil (int timeout, std::string &receivedResponse) |
Member Function Documentation
| bool isPortOpened | ( | ) |
Return Serial port status
- Returns
- true if serial port is opened.
|
virtual |
- Returns
- true if comunications are rebooted, false otherwise
Implements MessageManager.

Public Member Functions inherited from