-
• #2
NDEFWriter has been merged into NDEFReader recently. See https://github.com/espruino/EspruinoDocs/pull/589
-
• #3
Thanks! Updated code is here: http://www.espruino.com/Web+NFC
NDEFWriter has been merged into NDEFReader recently. See https://github.com/espruino/EspruinoDocs/pull/589
Thanks! Updated code is here: http://www.espruino.com/Web+NFC
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...