for (byte i = 0; i < mfrc522.uid.size; i++)
{
Serial.print(mfrc522.uid.uidByte{i} < 0x10 ? " 0" : " ");
Serial.print(mfrc522.uid.uidByte{i}, HEX);
content.concat(String(mfrc522.uid.uidByte{i} < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte{i}, HEX));
}
I use this code to get UID of an RFID card, but the error "expected ')' before '{' token""expected ')' before '{' token" comes out. Does anybody know how to solve this problem?