Skip to content
Snippets Groups Projects
Commit 87fb86ee authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Fix monitor config

parent 8fcffb5f
No related branches found
No related tags found
1 merge request!1First try of type hints
from xaal.lib import tools,Engine,Device,helpers from xaal.lib import tools,Device,helpers
from xaal.monitor import Monitor from xaal.monitor import Monitor
from . import sio from . import sio
...@@ -80,4 +80,4 @@ def update_kv(addr,kv): ...@@ -80,4 +80,4 @@ def update_kv(addr,kv):
body = {'device':dev.address,'map':kv} body = {'device':dev.address,'map':kv}
print(body) print(body)
send_request(db_server,'update_keys_values',body) send_request(db_server,'update_keys_values',body)
dev.set_db(kv) dev.set_db(kv)
\ No newline at end of file
...@@ -263,7 +263,7 @@ class Monitor: ...@@ -263,7 +263,7 @@ class Monitor:
return return
if msg.is_alive(): if msg.is_alive():
dev.alive(msg.body.get('timeout', config.DEF_ALIVE_TIMER)) dev.alive(msg.body.get('timeout', config.alive_timer))
elif msg.is_request_isalive(): elif msg.is_request_isalive():
self.last_isalive = now() self.last_isalive = now()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment