Yes, iPhone 7, 8, X with iOS11 (released in September 2017) feature a NFC reader API for NDEF records. (No write support and no arbitrary tag type support, just NDEF read.)
I'd like to have NFCTag.js listed. Should I open a pull request?
Since NFCTag.js implements write support, it opens up additional possibilities. In theory you could download code to a Puck using NFC...
I've come up with an additional example:
var data = new Uint8Array(16+768);
data.set("\xE1\x11\x60\x00", 0x0C);
var tag = require("NFCTag").create(data);
This code creates an empty tag with 768 bytes of writable storage.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, iPhone 7, 8, X with iOS11 (released in September 2017) feature a NFC reader API for NDEF records. (No write support and no arbitrary tag type support, just NDEF read.)
I'd like to have
NFCTag.js
listed. Should I open a pull request?Since
NFCTag.js
implements write support, it opens up additional possibilities. In theory you could download code to a Puck using NFC...I've come up with an additional example:
This code creates an empty tag with 768 bytes of writable storage.
The
data
can be initialized with an Android App, i.e.https://play.google.com/store/apps/details?id=com.nxp.nfc.tagwriter