Is ther a faster way to detect when a card disconnects other than continuously calling pn532.read_passive_target() until it times out?
_COMMAND_INLISTPASSIVETARGET can be rather slow to respond (sometimes >100ms).
I tried this:
pn532.call_function(_COMMAND_GETGENERALSTATUS, 8)
It reports the number of targets connected, but it doesn't update until I run some other target command.
Does someone know if there's a different command for this?
Is ther a faster way to detect when a card disconnects other than continuously calling
pn532.read_passive_target()
until it times out?_COMMAND_INLISTPASSIVETARGET
can be rather slow to respond (sometimes >100ms).I tried this:
pn532.call_function(_COMMAND_GETGENERALSTATUS, 8)
It reports the number of targets connected, but it doesn't update until I run some other target command. Does someone know if there's a different command for this?