NFCForms icon indicating copy to clipboard operation
NFCForms copied to clipboard

Getting NFC tags real Id, not the byte array

Open empaaa opened this issue 9 years ago • 2 comments

Is there a way to get a Tags Id as a string? In the object "NfcFormsTag" i am getting the Id, but its a byte[].. I would want the real UID from the tag. A 20 digit number.

This was our latest diskussion, if u wanna know the implementation, but i think u remember it :) https://github.com/poz1/NFCForms/issues/10

empaaa avatar Sep 22 '16 11:09 empaaa

Applying more information. When i am reading my nfc tags with my NFid reader, it prints out a 20 diget number. It should be the Id of the tag, but the id of the "NfcFormsTag" object that i get from the code, is a byte array.

Is it possible to convert this array into the 20 diget number that my NFid reader is getting? Or is that a completly diffrent thing?

empaaa avatar Sep 22 '16 13:09 empaaa

If you are looking for the MifareID my solution was : reverse the byte array id convert array to hex convert hex to decimal hope it helps :):):)

DimitriVanhaecke avatar Oct 16 '19 16:10 DimitriVanhaecke