-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels