This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
qSniff/source/sniff.cpp

23 lines
301 B
C++

#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;
}