Logic Machine Forum
ekey script error - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: ekey script error (/showthread.php?tid=457)



ekey script error - baggins - 07.11.2016

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?


RE: ekey script error - admin - 07.11.2016

You are probably linking your script to Action object (boolean) instead of Finger object (uint16).


RE: ekey script error - baggins - 07.11.2016

(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