That's great! So the NFC URL is possible with an app on iOS, even it's not enabled in the OS yet.
It'd be helpful if you could open a PR for the vCard and actual tag - I'm not sure if you've done it before, but just stick stuff in EspruinoDocs/modules (as it's not actual hardware) with a markdown file with an example or two of how to use it. Otherwise I could do that based on this thread?
I think the native vCard might be more useful as a module, but the NFCTag library itself is amazingly useful on its own, and the vCard implementation for it would probably be good in the docs, to compare to what happens for nfcRaw.
It's quite exciting that something like:
var data = new Uint8Array(16+768);
data.set("\xE1\x11\x60\x00", 0x0C);
var tag = require("NFCTag").create(data);
setWatch(function() {
eval(E.toString(new Uint8Array(data.buffer,16)));
}, BTN, {edge:"rising",repeat:true,debounce:20});
should mean you can write JS code via NFC then press the button to execute it :)
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.
That's great! So the NFC URL is possible with an app on iOS, even it's not enabled in the OS yet.
It'd be helpful if you could open a PR for the vCard and actual tag - I'm not sure if you've done it before, but just stick stuff in EspruinoDocs/modules (as it's not actual hardware) with a markdown file with an example or two of how to use it. Otherwise I could do that based on this thread?
I think the native vCard might be more useful as a module, but the NFCTag library itself is amazingly useful on its own, and the vCard implementation for it would probably be good in the docs, to compare to what happens for nfcRaw.
It's quite exciting that something like:
should mean you can write JS code via NFC then press the button to execute it :)