It is posible, change "void processTag()" like below:
void processTag() // once a whole tag is read, process it
{
parseTag(); // convert id to a string
printTag(); // print it
if (checkTag() == 1) // check if the tag is authorized
{
tagSuccess(); // if so, relay and green LED will be turned from OFF to ON or from ON to OFF, depend the value of ON_OFF variable (odd or even)
}
else
{
tagSuccess(); // otherwise, inform user of failure
}
}
It is posible, change "void processTag()" like below:
void processTag() // once a whole tag is read, process it
{
parseTag(); // convert id to a string
printTag(); // print it
if (checkTag() == 1) // check if the tag is authorized
{
tagSuccess(); // if so, relay and green LED will be turned from OFF to ON or from ON to OFF, depend the value of ON_OFF variable (odd or even)
}
else
{
tagSuccess(); // otherwise, inform user of failure
}
}