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