diff options
Diffstat (limited to 'src/main_client.cpp')
-rw-r--r-- | src/main_client.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main_client.cpp b/src/main_client.cpp new file mode 100644 index 0000000..363f610 --- /dev/null +++ b/src/main_client.cpp @@ -0,0 +1,20 @@ +#include "UDPClient/UDPClient.h" +#include "DetectorModule/DetectorModule.h" + +#include <iostream> +#include <string> + +int main (int argc, char *argv[]){ + + std::cout << "Sending UDP packages: " << std::endl; + + auto configPath = std::string { "config.cfg" }; + std::string address = "10.0.0.10"; + + DetectorModule<unsigned short> detModule0 = DetectorModule<unsigned short>(0, address, configPath); + + detModule0.sendPeriodically(5000); + + return 0; + +} |