Provides connection to the device via computer's serial port. More...
#include <cyberatom.hpp>
Public Member Functions | |
| SerialConnection (const char *portName, int baudRate) | |
| virtual void | sendMessage (uint8_t code, const uint8_t *payload, size_t len) override |
| virtual void | checkForMessages (IDevice &receiver) override |
Provides connection to the device via computer's serial port.
| cyberatom::SerialConnection::SerialConnection | ( | const char * | portName, |
| int | baudRate | ||
| ) |
| portName | Name of serial port used to communicate with the device. On Windows system that would be COMx and on Linux/Unix system typically /dev/ttyXXX. |
| baudRate | Communication rate in bauds. |
| CannotOpenPortException |
|
overridevirtual |
| code | |
| payload | |
| len |
Implements cyberatom::IConnection.