I have a scanner that reads qr codes for delivery packages, the problem is that I can’t do the for each, it reads ten, twenty times the same qr code, what I need is that it reads only once, each try to scan again it returns the message already scanned.
You can store into tinydb each value of the scanned qr. Every time it is scanned, compare with the list stored in tinydb, if it is different, do what you need to do and add this new value in the scan list.
If it’s already on the list, do nothing…
yes, being able to make it read the qrs and not allow it to read repeatedly, the problem now it breaks the list, for example, I will scan ten packages if on the 9th I repeat beep it leaves the screen, does not save the variables and does not allow reading again, it’s not clearing the variables, I know it’s a little confusing.
What I’m going to try to do now is put a button on the screen like the example below, I think it will get better.
I am studying ways to create this extension, and I found this https://editor.appybuilder.com/ maybe I can build the barcode scanner in java the way I want it.