update basic usage information

This commit is contained in:
Fanani M. Ihsan 2016-05-27 01:42:04 +07:00
parent c996391117
commit 19130be006
2 changed files with 8 additions and 2 deletions

View File

@ -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()

View File

@ -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()