mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-03-18 21:50:33 +01:00
update
This commit is contained in:
@@ -280,6 +280,14 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
else if (tokens[3] == "1") {
|
||||
this->togglePince(2);
|
||||
}
|
||||
else if (tokens[3] == "11") {
|
||||
this->alertLidar = true;
|
||||
this->broadcastMessage("strat;gc;start proximity;1\n");
|
||||
}
|
||||
else if (tokens[3] == "12") {
|
||||
this->alertLidar = false;
|
||||
this->broadcastMessage("strat;gc;stop proximity;1\n");
|
||||
}
|
||||
else if (tokens[3] == "13") {
|
||||
this->togglePanel(0);
|
||||
}
|
||||
|
||||
@@ -93,6 +93,8 @@ private:
|
||||
|
||||
int lidarDecetionDistance = 0;
|
||||
|
||||
bool alertLidar = true;
|
||||
|
||||
public:
|
||||
explicit TCPServer(int port);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user