basically when the mifare card is in range my arduino program will receive the manufacture id value and also the current pc time.
I need the program to check when the specific card is not in range to then get that 'current pc time' so i have an end value.
Initially I'm going to send serially to a database the ID value, start time, end time
So i figured how to get the pc time with using the date time library for arduino.
Now i need to get JUST the manufacture id value
in the sample code provided by adafruit
Code: Select all
void loop(void) {
uint32_t id;
// look for MiFare type cards
id = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A);
if (id != 0)
{
Serial.print("Read card #"); Serial.println(id);
}
}
Is their any other way to Just get the manufacture value without modifying the readPassiveTargetId function??( atm i went into the function and just commented out the serial.prntln of the stuff i don't want)
Also does anyone have any suggestions on how to accurately get an 'end time' once the card is no longer in range???
I thought of possibly putting the program to sleep and it checks every few seconds and if the same id value inst there then i get the pc time..
Does anyone have any other thoughts on how i' get the 'end time'?