#pragma once #include #include class RFIDReader { public: RFIDReader(int ssPin, int rstPin); void begin(); bool check(); void reset(); void printUID() const; bool matches(const byte* expectedUid, byte expectedSize) const; const byte* getUID() const; byte getUIDSize() const; private: MFRC522 _rfid; MFRC522::MIFARE_Key _key; };