how we can write what is followed in code form:
we read Hex code from the card from RFID scanner than we save the card, and we save the Hex Card ID , in variable, than we will compare the safe card ID with a new card on RFID scanner and with (If function)
hexadecimal werte vergleichen
bool keyCheck(char (*pInputKey)[12]) {
const char validKey[12] = "BD 31 15 2B";
if (strncmp(*pInputKey, validKey, 12) == 0) return true;
return false;
}
or
bool keyCheck(char (*pInputKey)[12], char (*pValidKey)[12]) {
if (strncmp(*pInputKey, *pValidKey, 12) == 0) return true;
return false;
}