From 9d3685d64fed388babb4d9659ef5e49d731e9866 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Mon, 1 Jul 2024 18:28:52 +0200 Subject: [PATCH] do not use --- main.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/main.cpp b/main.cpp index f668745..fb1dee5 100644 --- a/main.cpp +++ b/main.cpp @@ -3,8 +3,6 @@ #include #include -#include - #include "MyClient.h" // Numéro du GPIO connecté à la tirette @@ -30,13 +28,9 @@ int main(int argc, char* argv[]) { pullUpDnControl(TIRETTE_GPIO, PUD_UP); - CLParser clParser(argc, argv); + int port = std::atoi(argv[2]); - int port = clParser.getOption("port", 8080); - - auto host = clParser.getOption("host", "127.0.0.1"); - - MyClient client(host, port); + MyClient client("127.0.0.1", port); client.setTiretteState(true);