send a ready message

This commit is contained in:
ackimixs
2024-04-02 16:46:55 +02:00
parent b8c2097ae7
commit 8ef01ca15c

View File

@@ -22,6 +22,8 @@ int MyTCPClient::init() {
initPCA9685(this->handle);
this->sendMessage("servo_pot;strat;ready;1");
return 0;
}
@@ -35,7 +37,7 @@ void MyTCPClient::handleMessage(const std::string &message) {
if (token[1] == "servo_pot" || token[1] == "all") {
if (token[2] == "ping") {
this->sendMessage("pong");
this->sendMessage("servo_pot;ihm;pong;1");
}
else if (token[2] == "ouvrir pince") {
int pince = std::stoi(token[3]);