From e2e92b7f2d2d0dd1dfdbeb10f253736c79cbad2e Mon Sep 17 00:00:00 2001 From: ackimixs Date: Tue, 2 Apr 2024 21:02:28 +0200 Subject: [PATCH] check if serial open --- MyTCPClient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MyTCPClient.cpp b/MyTCPClient.cpp index 8645294..43126cc 100644 --- a/MyTCPClient.cpp +++ b/MyTCPClient.cpp @@ -43,6 +43,8 @@ void MyTCPClient::handleMessage(const std::string &message) { void MyTCPClient::init() { this->serial = init_serial(); + std::cout << "Serial is open ? : " << this->serial.isDeviceOpen() << std::endl; + this->sendMessage("arduino;strat;ready;1"); }