I'm using Puck.js (Espruino v2.01) and I want to be able to manipulate variables based on data that is written to the NFC tag using NFCrx.
If I use the 'NFCon' event, and console log based on that, everything works when I scan NFC:
>NRF.on('NFCon', () => { console.log("test"); });
=undefined
test
test
test
But when I use the NFCrx event instead, after NFCStart of course, the event callback is not called (almost as if the event is not registered):
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.
I'm using Puck.js (Espruino v2.01) and I want to be able to manipulate variables based on data that is written to the NFC tag using NFCrx.
If I use the 'NFCon' event, and console log based on that, everything works when I scan NFC:
But when I use the NFCrx event instead, after NFCStart of course, the event callback is not called (almost as if the event is not registered):
What am I missing?
Thanks in advance