diff options
author | Tobias Frust <tobiasfrust@gmail.com> | 2016-06-30 10:13:01 +0200 |
---|---|---|
committer | Tobias Frust <tobiasfrust@gmail.com> | 2016-06-30 10:13:01 +0200 |
commit | 5680aa99001cb50c707c4187cd8ada0c41a573dd (patch) | |
tree | fcbe575cd20e35dbe3d2b7def5e7c801d576aaf8 /src/main_client.cpp | |
parent | 1dc95b4eed7974549ef43a87e0777aa343b30fd4 (diff) | |
download | ods-5680aa99001cb50c707c4187cd8ada0c41a573dd.tar.gz ods-5680aa99001cb50c707c4187cd8ada0c41a573dd.tar.bz2 ods-5680aa99001cb50c707c4187cd8ada0c41a573dd.tar.xz ods-5680aa99001cb50c707c4187cd8ada0c41a573dd.zip |
implemented virtual DetectorModule with simple send via udp
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; + +} |