mirror of
https://github.com/modelec/connectors.git
synced 2026-03-18 21:50:33 +01:00
check if serial open
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user