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

Cannot extract NDEF data from NTAG215 tag. #26

Open
bopv2 opened this issue Dec 4, 2024 · 0 comments
Open

Cannot extract NDEF data from NTAG215 tag. #26

bopv2 opened this issue Dec 4, 2024 · 0 comments

Comments

@bopv2
Copy link

bopv2 commented Dec 4, 2024

Hey there!
I am trying to extract every NDEF record from a NTAG215 NFC card but each time for some reason it keeps resulting into a TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) error.

Full output:

PS C:\nfc\> node main.js
Waiting for rfid ready event...
(node:31704) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
Listening for a tag scan...
Tag { ATQA: <Buffer 00 44>, SAK: 0, uid: '04:b4:b8:1b:6f:61:80' }
Reading tag data...
error: [pn532] ERROR:
Tag data: undefined
C:\nfc\main.js:19
            var records = ndef.decodeMessage(Array.from(data));
                                                   ^

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at Function.from (<anonymous>)
    at C:\nfc\main.js:19:52

Node.js v18.20.4

^ Code is from the read_data.js example, I edited the SerialPort path.

There is 1 NDEF record with string: "first".
NFC Tools on iOS reads it fine.

Using PN532 V2.0 module from AliExpress on Windows 11

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

1 participant