Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rc522 blocks execution of other code #1

Open
imtweety opened this issue Apr 4, 2016 · 6 comments
Open

rc522 blocks execution of other code #1

imtweety opened this issue Apr 4, 2016 · 6 comments

Comments

@imtweety
Copy link

imtweety commented Apr 4, 2016

The Demo code does run and it echos the RFIDs on the screen.
However when I try to combine it with other functions, it seems to block the other code. Is this supposed to do so? How do I prevent this blocking?

@SillOega
Copy link

Did you find a solution for the problem?

@ocsacesar
Copy link
Owner

Hello, I am sorry, I'll looking a solution this next week and fix this.

@imtweety
Copy link
Author

Meanwhile I use rc522-rfid-promise successfuly. Tested on RPI 1 model B and RPI 3 model B.
https://www.npmjs.com/package/rc522-rfid-promise
Good luck!

@SillOega
Copy link

SillOega commented Apr 24, 2016

The rc522-promise also works but the problem is that it closes after
each read.
Yours keep reading and is exactly what i need.

Trying to send a request to an external php file and run the card id
through mysql.
Works fine alone but when combined with your rc522 module nothing returns :(

Den 2016-04-24 kl. 10:39, skrev imtweety:

Meanwhile I use rc522-rfid-promise successfuly. Tested on RPI 1 model
B and RPI 3 model B.
https://www.npmjs.com/package/rc522-rfid-promise
Good luck!


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1 (comment)

@ocsacesar
Copy link
Owner

Try change the path "rc522/build/Release/rc522" to "rc522".
Could you check and inform?

@imtweety
Copy link
Author

When using var rc522 = require("rc522"); it works like a charme!
Tested on Rasp 3 in conjunction with mysql, onoff and bleno.
Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants