Web NFC (and writing to NFC tags) #4234
Unanswered
gfwilliams
asked this question in
Puck.js, Pixl.js, Jolt.js and MDBT42
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2020-09-25 by @gfwilliams
Hi, I'll try and turn this into a tutorial at some point, but it turns out you can now use 'Web NFC' on Android to read and write NFC tags including Puck.js/Pixl.js.
HTML looks like this:
Puck.js/Pixl.js code is a bit more complex as right now it's emulating an NFC tag in JS:
But basically this lets you send strings of data over NFC (no bluetooth connection needed). You just hold the phone near, tap 'red/green/blue' and then when you move the phone away Puck.js reads the text in the tag and decides what colour to make itself...
Beta Was this translation helpful? Give feedback.
All reactions