Good Evening!
I was wondering if it is possible to read the unique ID of a NFC Tag? Rather than reading a NDEF record on the card.
I hope I have explained clearly.
Many Thanks,
Googie.
Reading Tag ID using NFC.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 7266
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Reading Tag ID using NFC.
When a tag is scanned you should get a message "nfcTagReceived". Write a handler to catch that message. The single parameter is an array containing the tag data.
The ID will be binary, you can convert it to ascii for human-readable text if you need to:
Code: Select all
on nfcTagReceived pTag
put pTag["id"] into tTagID -- extract hardware ID
...
end nfcTagReceived
Code: Select all
get binaryDecode("H*",pTagID,tAsciiTag)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com