diff --git a/MyTCPClient.cpp b/MyTCPClient.cpp index 1e21702..0513392 100644 --- a/MyTCPClient.cpp +++ b/MyTCPClient.cpp @@ -52,6 +52,7 @@ void MyTCPClient::handleMessage(const std::string &message) { } else if (token[2] == "set pos") { std::vector args = TCPSocket::split(token[3], ","); std::string command = "S " + std::to_string(std::stoi(args[0])) + " " + std::to_string(std::stoi(args[1])) + " " + args[2] + "\n"; + std::cout << command << std::endl; if (this->write_2_arduino(command) != 1) { std::cerr << "Error writing to arduino" << std::endl; }