check if serial open

This commit is contained in:
ackimixs
2024-04-02 21:02:28 +02:00
parent 302c4a1c99
commit e2e92b7f2d

View File

@@ -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");
}