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
Is there a way to disable the current default LED (what I think is built in) behavior? What I mean by that is when you scan a card, the LED turns green. Once you take it off, the LED turns red. You can of course send custom LED commands to the reader using reader.led(), however, in my case, I want the LED to remain red and only turn green only once a card is applied, read, an API call has been made and a response has been received. If an error is encountered in either the card reading process or if no API response is received, I would like the LED to remain red.
This sort of has the effect that I need, however, the issue is that once I read a card, the LED immediately turns green and only after a few miliseconds, the axios response is received, and the LED blinks again.
How do I disable the default LED behavior?
The text was updated successfully, but these errors were encountered:
Is there a way to disable the current default LED (what I think is built in) behavior? What I mean by that is when you scan a card, the LED turns green. Once you take it off, the LED turns red. You can of course send custom LED commands to the reader using reader.led(), however, in my case, I want the LED to remain red and only turn green only once a card is applied, read, an API call has been made and a response has been received. If an error is encountered in either the card reading process or if no API response is received, I would like the LED to remain red.
So far, this is what I have:
This sort of has the effect that I need, however, the issue is that once I read a card, the LED immediately turns green and only after a few miliseconds, the axios response is received, and the LED blinks again.
How do I disable the default LED behavior?
The text was updated successfully, but these errors were encountered: