Hello and good day!
I am trying to use an RC522 RFID module for a simple attendance log thing.
I want to make it so that the program will read a card for it's ID and the data, which for this project is the balance of the user.
I am having trouble understanding how to read data from the PICC or the RFID card/tag, for example in block 2, and have it be an integer and stored into a variable for later use.
I plan to use the function readBlock() which I found here and I wonder if just simply writing in
int number = readBlock(block, blockContent);
would work.
However I do believe that readBlock() returns it as bytes and I do not know how to turn that into one integer.
Any and all help will be much appreciated!
EDIT: I have all of it figured out, I was feeling a little hopeless so I thought I'd turn to more knowledgeable people but ended up understanding it...No need to help.