mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-03-29 03:49:35 +02:00
sleep
This commit is contained in:
@@ -242,7 +242,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
}
|
||||
}
|
||||
else if (tokens[0] == "arduino" && tokens[2] == "set state") {
|
||||
this->isRobotMoving += (TCPUtils::startWith(tokens[3], "1") ? 1 : 0);
|
||||
this->isRobotMoving += (TCPUtils::startWith(tokens[3], "0") ? 1 : 0);
|
||||
}
|
||||
std::cout << "Received: " << message << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user