someone-noone / libnfc-js

A simple libnfc API to interact with NFC tags.
Apache License 2.0
6 stars 9 forks source link

How to get more card data? #2

Open adamreisnz opened 7 years ago

adamreisnz commented 7 years ago

Could you tell me how I can get more information from a card/phone in the poll callback? The card object passed to it only contains the following information, which is the same for both a plastic NFC card and my phone;

{ modulationType: 'NMT_ISO14443A', baudRate: 'NBR_106' }

I was hoping there would be some kind of unique identifier there or more information about the card/device.

someone-noone commented 6 years ago

well, I'm unsure if the library can provide more data. Could you please check whether nfc-poll command returns what you want. If yes, then I definitely could add the functionality. Just let me know what exactly you need.

adamreisnz commented 6 years ago

Yes, it does return more data, like card ID etc. In the end I switched to https://www.npmjs.com/package/nfc and it outputs much more information.

someone-noone commented 6 years ago

I see. The nfc package is for sure more mature project. However, it lacked the transceiver functionality and that's why I created this package. In any case, thank you for the interest and feedback. I'll try to do my best and update the library soon and include all data I can get from libnfc.

adamreisnz commented 6 years ago

Great, thank you. If you manage to get the data out of the card let me know and I'll have a look 👍