This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

ekey script error
#1
Hi,

I have an Ekey finger scanner (Ekey module 861667553) connected to my LM4 (firmware version 20160714).
The Ekey system was installed using the procedure described the in http://openrb.com/ekey-biometric-scanner-interconnection-with-lm

The script used to detect a finger is exactly the same as described in the procedure:

Code:
value = event.getvalue('14/2/0')

user = bit.rshift(value, 4)
finger = bit.band(value, 0x0F)


The fingerscan works but there is always an error message in the Error Log:

              Line 3: bad argument #1 to 'rshift' (number expected, got boolean)

Should I worry about this?
Reply
#2
You are probably linking your script to Action object (boolean) instead of Finger object (uint16).
Reply
#3
(07.11.2016, 11:44)admin Wrote: You are probably linking your script to Action object (boolean) instead of Finger object (uint16).

No, the script is linked to object Ekey Finger Scanner 1: 2 byte unsigned integer
Reply


Forum Jump: