You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was really happy when I found your node module for NFC. Unfortunately I need to write to NFC tags in my application, so I'm asking for write support.
As far as I know, there isn't much difference between reading and writing. Therefore I wonder if implementing write support would be much effort.
I can try implementing it on my own if you don't want to add it. In this case I'd have to use libnfc anyway. Maybe you can give me a few hints where to start.
The text was updated successfully, but these errors were encountered:
Hi there,
Currently, write support is on the roadmap, but i don't think i'll have time to implement this very soon. You could try to implement this on your own, by extending the wrapped c++ object with some write functions.
You could start by looking up some basic libnfc information, and Native abstraction for NodeJS (NaN) documentation. It might be easier to convert the NFCCard class to an objectwrapped class allowing you to keep a reference to the card pointer of libnfc, and causing the garbage collector to retain the class while its in use by the javascript environment, instead of creating a plain javascript object and copying the properties there. However, i'm not completely sure about the lifecycle flow when we do that, as i think the card is instantiated in a non-javascript thread. You could also try to create a separate write function on the NFC device instance, but i'm not sure if you have all data available in JS space to invoke this method properly.
If you have any other questions, i'm happy to answer them!
I was really happy when I found your node module for NFC. Unfortunately I need to write to NFC tags in my application, so I'm asking for write support.
As far as I know, there isn't much difference between reading and writing. Therefore I wonder if implementing write support would be much effort.
I can try implementing it on my own if you don't want to add it. In this case I'd have to use libnfc anyway. Maybe you can give me a few hints where to start.
The text was updated successfully, but these errors were encountered: