xod-dev/pn532-nfc@0.37.3

License: MIT

Support for RFID/NFC modules based on a PN532 chip.
NodeDescription
equal(nfc-uid)
Compares two UIDs
example-nfc-scannerNo description
example-read-pageNo description
example-ticketsNo description
example-write-pageNo description
is-empty
Checks whether a UID is empty which corresponds to “no tag”
nfc-scanner
A quick-start node which represents an RFID/NFC module. Initializes the module and reads the UID of a detected card Possible errors: — Initialization error
nfc-uid
Constructs the UID type from bytes. If the UID is shorter than 7 bytes it begins from the first position and the rest of bytes are equal to zero
pn532-deviceNo description
read-page
Reads one page of a Mifare Ultralight NFC tag. To read data from a tag it should be paired first (use `pair-tag`) Possible errors: — Can't read the value
pair-tag
Pairs module with an NFC tag and reads the UID
write-page
Writes data to the specified page of a Mifare Ultralight NFC tag. To write data to a tag it should be paired first (use `pair-tag`) Possible errors: — Can't write the value
validate-uid
Compares an UID of the NFC tag with the reference UID. Returns `False` on both outputs if the UID of NFC tag is empty.
unpack-nfc-uid
Destructs the UID type to bytes If the UID of the tag is longer than 7 bytes, then the first 7 bytes will be here and the rest are cut off
To use the nodes in your project you should have the xod-dev/pn532-nfc library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.