You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
^ 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
The text was updated successfully, but these errors were encountered: