set state

This commit is contained in:
ackimixs
2024-04-16 20:11:56 +02:00
parent bc2e4ad671
commit 03af72c1c6

View File

@@ -242,7 +242,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
}
}
else if (tokens[0] == "arduino" && tokens[2] == "set state") {
if (TCPUtils::startWith(tokens[3], "0")) {
if (TCPUtils::startWith(tokens[3], "1")) {
this->isRobotMoving++;
std::string temp = message;
this->broadcastMessage(temp, clientSocket);