update basic usage information
This commit is contained in:
parent
c996391117
commit
19130be006
@ -22,7 +22,10 @@ from zk import const
|
||||
|
||||
zk = zk.ZK(ip='192.168.1.201', port=4370, timeout=5)
|
||||
try:
|
||||
zk.connect()
|
||||
response = zk.connect()
|
||||
if response.get('status') is False:
|
||||
raise Exception(response.get('message'))
|
||||
|
||||
# disable (lock) the device, make sure no activity when process run
|
||||
zk.disable_device()
|
||||
|
||||
|
@ -37,7 +37,10 @@ Basic Usage
|
||||
|
||||
zk = zk.ZK(ip='192.168.1.201', port=4370, timeout=5)
|
||||
try:
|
||||
zk.connect()
|
||||
response = zk.connect()
|
||||
if response.get('status') is False:
|
||||
raise Exception(response.get('message'))
|
||||
|
||||
# disable (lock) the device, make sure no activity when process run
|
||||
zk.disable_device()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user