summaryrefslogtreecommitdiffstats
path: root/src/main_client.cpp
blob: 363f610d9922b660dd7034565710b6617bc038b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;

}