if ( mfrc522.PICC_IsNewCardPresent()){
if ( mfrc522.PICC_ReadCardSerial()){
Serial.print("Tag UID:");
for (byte i = 0; i < mfrc522.uid.size; i++) {
Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " ");
Serial.print(mfrc522.uid.uidByte[i], HEX);
}
上面是我的RFID标签读取代码,我想将标签的UID转换为单个整数值