mirror of
https://github.com/modelec/emergency.git
synced 2026-03-18 21:50:42 +01:00
Add isDeviceOpen to check the status of the serial link
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -29,6 +29,8 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
serialib serial = init_serial();
|
serialib serial = init_serial();
|
||||||
|
|
||||||
|
std::cout << serial.isDeviceOpen() << std::endl;
|
||||||
|
|
||||||
char myString[MAX_MESSAGE_LEN] = {0};
|
char myString[MAX_MESSAGE_LEN] = {0};
|
||||||
|
|
||||||
std::string toSend = "G " + line + "\n";
|
std::string toSend = "G " + line + "\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user