Codefans-fan / zklib

using the TCP protocol and port 4370. Attendance Machine Libraries.
10 stars 9 forks source link

zkversion function #3

Open not-mounam opened 6 years ago

not-mounam commented 6 years ago

first of all, thanks for this library I am testing it in order to work with it, the connect function is okey but when I test the version function, it doesn't . this is the code

 `zk = zklib.ZKLib("192.168.1.201", 4370)
res = zk.connect()
print res

#temp = 0 # flag to disconnect
if res:
    print "ZK Version:", zk.version()
    print "OS Version:", zk.osversion() `

this is the message I got

  `dans zkversion
  session_id = self.session_id

AttributeError: ZKLib instance has no attribute 'session_id' `
hamzaafridi commented 5 years ago

I encountered exactly the same problem. However this implementation doesn't have self.version() function. you can try zkfirmwareVersion or zkplatformVersion