Closed dracode closed 4 years ago
@dracode I think I did not include that because of memory constraints in esp8266, and the fact that I only needed the card ID. However I think you're right and this is important for more advanced applications. Thanks! 👍
Ah, that's true, I'd forgotten about that. I am using an ESP-32 for this project so have more memory to play with. I have some other improvements in mind, but they'd add more overhead. Perhaps I should just make a full fork and make the modifications there, so people have the option to use whichever best suits their needs. Thanks!
While trying to read data from a card, I realized that "authentication" is a vital part of the way that MIFARE Classic cards work. Without the authentication, I could not read the data off the card.
This branch ports the mifare_classic_authentication_block() function from the Adafruit library. This change allows mifare_classic_read_block() to retrieve data from the card.