private MfReaderWriter readerWriter = new Acr122ReaderWriter(nfcReaderWriter);
private NdefMessageDecoder decoder = NdefContext.getNdefMessageDecoder();
@Override
public void cardDetected(MfCard card, MfReaderWriter readerWriter) throws IOException {
MfNdefReader ndefReader = new MfNdefReader(readerWriter, decoder);
try {
List<Record> records = ndefReader.readNdefMessage(card);
for (Record record : records) {
log.info(record.toString());
}
}
catch (IOException e) {