Add isDeviceOpen to check the status of the serial link

This commit is contained in:
2024-05-08 11:07:11 +02:00
parent 0dce10553c
commit 3e3c3f3fbb

View File

@@ -29,6 +29,8 @@ int main(int argc, char *argv[]) {
serialib serial = init_serial();
std::cout << serial.isDeviceOpen() << std::endl;
char myString[MAX_MESSAGE_LEN] = {0};
std::string toSend = "G " + line + "\n";