- Author
- MIP
#include <iostream>
#include <Utils/SerialPortIO.hh>
using namespace BIAS;
using namespace std;
int main(int argc, char *argv[])
{
#ifdef WIN32
cout<<"trying to open COM3 for serial communication:"<<endl;
#else
cout<<"trying to open /dev/ttyUSB0 for serial communication:"<<endl;
#endif
while(true){
cout<<"Reading:"<<endl;
string m;
cout<<m<<endl;
string rfid = "";
if(ret)
cout<<"RFID:"<<rfid<<endl;
else
cout<<"Invalid!"<<endl;
cout<<flush;
}
return 0;
}