13 lines
330 B
C++
13 lines
330 B
C++
#include "sensor_network.h"
|
|
#include <iostream>
|
|
|
|
int main() {
|
|
SensorNetwork<8> network;
|
|
std::cout << "Starting simulation...\n";
|
|
network.start(2, 2); // 2 sensors, 2 analysers
|
|
|
|
std::this_thread::sleep_for(std::chrono::seconds(30));
|
|
network.stop();
|
|
std::cout << "Simulation finished\n";
|
|
return 0;
|
|
}
|