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

tagPresent with default timeout takes about 1000ms to complete #52

Open
abcd-ca opened this issue Jun 5, 2019 · 1 comment
Open

tagPresent with default timeout takes about 1000ms to complete #52

abcd-ca opened this issue Jun 5, 2019 · 1 comment

Comments

@abcd-ca
Copy link

abcd-ca commented Jun 5, 2019

I'm not sure if this relates to the "shouldn't block" issue but I discovered nfc.tagPresent() takes about a second to complete, delaying my run loop.

I guess my question is, should I expect it to take a second, which appears to block? What do you think is responsible for the delay and what do you recommend I pursue to overcome it?

Note, I am using the Grove NFC module (not the shield version). It uses UART by default. Though it says you can modify the board to use I2C, I (and others apparently) cannot get that to work. In order to get this NFC library to work, I'm using this software serial, PN532_SWHSU PN532Interface I found. My uC is a Huzzah ESP8266. Everything is actually working, it's just the delay I'm wondering about.

Thank you for your awesome library!

@abcd-ca
Copy link
Author

abcd-ca commented Jun 7, 2019

OK, so I tested passing it 250 and now it's faster so I think this is a duplicate of the shouldn't block issue except in that issue it's apparently fixed yet the problem persists for me. Is it because I'm using the software serial interface?

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

1 participant