mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-03-23 16:10:41 +01:00
set state
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") {
|
||||
if (TCPUtils::startWith(tokens[3], "0")) {
|
||||
if (TCPUtils::startWith(tokens[3], "1")) {
|
||||
this->isRobotMoving++;
|
||||
std::string temp = message;
|
||||
this->broadcastMessage(temp, clientSocket);
|
||||
|
||||
Reference in New Issue
Block a user