Inherits HardwareInterface.
virtual bool Serial::Close |
( |
void |
| ) |
|
|
virtual |
Close the open serial connection
- Returns
- true if the connection is successfully closed, false if no connection was open or it failed to close the connection
Implements HardwareInterface.
virtual bool Serial::Open |
( |
char * |
| ) |
|
|
virtual |
Open a serial connection to the given com port
- Parameters
-
char* | the com port to connect to |
- Returns
- true if the connection is successfully open, false otherwise
Implements HardwareInterface.
virtual int Serial::SendData |
( |
char * |
| ) |
|
|
virtual |
Sends data through the com port
- Parameters
-
char* | a C string to send through the com port |
- Returns
- 0 if no error occurred, non-zero otherwise
Implements HardwareInterface.
The documentation for this class was generated from the following file: