Espruino and NFC


#1

Hi,

Is it possible to use Espruino to scan/detect NFC tags?

Thanks,
Jari


#2

Yes, Espruino’s NFC functions work on RuuviTag.

Edit: RuuviTag cannot act as a reader, so you’ll need a NFC reader (phone, for example) to read the tags.


#3

Hi!

How do I access the NFC library? The following code does not work

var Ruuvitag = require("Ruuvitag");
NRF.nfcURL("http://espruino.com");

Do I need to require any other library/class?

Thanks
David


#4

Maybe you need to call some start() -function?


#5

Hi, thanks for your reply.

I managed to get it working with the same code as my first post. It was just that I had to hold my phones NFC antenna (a Oneplus 5) about one centimeter from the ruuvis NFC antenna. At first I wasn’t sure where my phones antenna was.