Files
servo_moteurs/main.cpp
2024-04-11 18:18:59 +02:00

20 lines
346 B
C++

#include "MyTCPClient.h"
int main(int argc, char* argv[]) {
int port = 8080;
if (argc > 1) {
port = std::stoi(argv[1]);
}
MyTCPClient client("127.0.0.1", port);
client.start();
client.sendMessage("servo_moteur;strat;ready;1");
while (!client.shouldStop()) {
usleep(100'000);
}
return 0;
}