Added console application, Fixes #5

This commit is contained in:
Michael Mandl 2017-10-18 22:31:39 +02:00
parent 7143900c22
commit d12eb36ffe
5 changed files with 76 additions and 24 deletions

22
source/sniff.cpp Normal file
View file

@ -0,0 +1,22 @@
#include "sniffer.h"
#include <iostream>
int main(int argc, char **argv)
{
std::cout << "Sniff" << std::endl;
Sniffer sniffer(6);
while (true)
{
unsigned int data = sniffer.receive();
if (data != 0)
{
std::cout << "Data: " << data << std::endl;
}
delay(100);
}
return 0;
}