This repository has been archived on 2018-05-28. You can view files and clone it, but cannot push or open issues or pull requests.
BBB-Simple-ACS/client/card_reader.hpp

19 lines
328 B
C++

#pragma once
#include <acs-driver/mfrc522.hpp>
namespace acs
{
class card_reader
{
mfrc522* rfid_ = nullptr;
mfrc522::uid_t last_uid_;
static mfrc522::mifare_key key_;
public:
explicit card_reader();
uint32_t find_card();
std::string get_student_number();
};
}