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

searchTemplate ERROR #113

Open
kotobukidevelopers opened this issue Feb 22, 2021 · 0 comments
Open

searchTemplate ERROR #113

kotobukidevelopers opened this issue Feb 22, 2021 · 0 comments

Comments

@kotobukidevelopers
Copy link

I have stumble the error communication error
mentioned in #89 the problem is that the thread doesn't explain the whole problem and the exact solution

ok here is the instance

I have registered my fingerprint in R307 module then save the FINGERPRINT_BUFFER1 characteristic in the database
then I will sync the other R307 with the given fingerprint buffer using the uploadCharacteristics()

here is the snippet
Second R307
f.uploadCharacteristics(FINGERPRINT_CHARBUFFER1,json.loads(row[2]))
//check if the fp data is in the module
result = f.searchTemplate()
pos_no = result[0]
if pos_no == -1:
print("register to module")
else:
print("already in the module")

so means on second r307 I wanna check if the fingerprint is already registered in the module however when I perform a searchTemplate()
this throws an exception of communication error

the GOAL is to check the fingerprint if it exist before adding it in the second module

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