21 lines
852 B
Python
21 lines
852 B
Python
import sys
|
|
import os
|
|
sys.path.insert(1,os.path.abspath("./pyzk"))
|
|
from zk import ZK, const
|
|
|
|
zk = ZK('10.35.7.12', port=4370, timeout=5, password=0, force_udp=False, ommit_ping=False)
|
|
conn = zk.connect()
|
|
|
|
print('Firmware version : ', conn.get_firmware_version())
|
|
print('Serial number : ',conn.get_serialnumber())
|
|
print('Platform : ',conn.get_platform())
|
|
print('Device name : ',conn.get_device_name())
|
|
print('Face version : ',conn.get_face_version())
|
|
print('Finger version : ',conn.get_fp_version())
|
|
print('Extended format : ',conn.get_extend_fmt())
|
|
print('User extended format : ',conn.get_user_extend_fmt())
|
|
print('Face fun on : ',conn.get_face_fun_on())
|
|
print('Old firmware compatibility : ',conn.get_compat_old_firmware())
|
|
print('Network : ',conn.get_network_params())
|
|
print('MAC address : ',conn.get_mac())
|
|
print('Pin width : ',conn.get_pin_width()) |