update base
This commit is contained in:
parent
eedcccac0f
commit
88a6e5bf4b
@ -677,6 +677,8 @@ class ZK(object):
|
|||||||
command = const.CMD_RESTART
|
command = const.CMD_RESTART
|
||||||
cmd_response = self.__send_command(command)
|
cmd_response = self.__send_command(command)
|
||||||
if cmd_response.get('status'):
|
if cmd_response.get('status'):
|
||||||
|
self.is_connect = False
|
||||||
|
self.next_uid = 1
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
raise ZKErrorResponse("can't restart device")
|
raise ZKErrorResponse("can't restart device")
|
||||||
@ -714,6 +716,8 @@ class ZK(object):
|
|||||||
response_size = 1032
|
response_size = 1032
|
||||||
cmd_response = self.__send_command(command, command_string, response_size)
|
cmd_response = self.__send_command(command, command_string, response_size)
|
||||||
if cmd_response.get('status'):
|
if cmd_response.get('status'):
|
||||||
|
self.is_connect = False
|
||||||
|
self.next_uid = 1
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
raise ZKErrorResponse("can't poweroff")
|
raise ZKErrorResponse("can't poweroff")
|
||||||
|
Loading…
Reference in New Issue
Block a user