Thanks Bill! for a very helpful explanation.
You are right, the data is byte array and I want it to copy it to a char array. Iam trying this, but won't work
arr = reinterpret_cast<char>(mfrc522.uid.uidByte);
throws an error: cast from 'byte* {aka unsigned char*}' to 'char' loses precision [-fpermissive]
This gives me an ascii value as it is getting converted from byte to char without a cast
for(int i = 0; i<=(mfrc522.uid.size); i++)
{
arr[i] = mfrc522.uid.uidByte[i];
}
Can you help me with the conversion. Sorry stuck at basic.
@sterretje: I cannot use the serial library as a requirement but i have already tested the code to test the RFID reader when I bought it. /Thanks.