void suppressAll() //suppresses the "null result" from being printed if no RFID tag is present
{
if(mySerial.available() > 0)
{ mySerial.read();
suppressAll();
}
}
Recursive calls like this are not a good idea.
{suppressAll();}
Alittlewhitespacewouldbeagoodidea.
Both codes are taken from Arduino Playground - HomePage and are working properly.
Here's my problem, I want to read the data that has been written into the tag but I do not know how.
Is the first code working, or not. It looks like it reads all the data. Does it, or doesn't it?