Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting NFC tags real Id, not the byte array #11

Open
empaaa opened this issue Sep 22, 2016 · 2 comments
Open

Getting NFC tags real Id, not the byte array #11

empaaa opened this issue Sep 22, 2016 · 2 comments

Comments

@empaaa
Copy link

empaaa commented Sep 22, 2016

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 :)
#10

@empaaa
Copy link
Author

empaaa commented Sep 22, 2016

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?

@DimitriVanhaecke
Copy link

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 :):):)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants