Skip to content
Snippets Groups Projects
Commit 1cb20fe5 authored by jkerdreu's avatar jkerdreu
Browse files

Some API changes

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2766 b32b6428-25c9-4566-ad07-03861ab6144f
parent a8e6b06a
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ class InfoDumper:
def main():
if len(sys.argv) == 2:
addr = tools.str_to_uuid(sys.argv[1])
addr = tools.get_uuid(sys.argv[1])
if addr:
t0 = time.time()
eng = Engine()
......
......@@ -43,7 +43,7 @@ class Scanner:
self.seen = []
logger.info("[%s] searching [%s]" % (self.dev.address,self.dev_type))
self.eng.send_is_alive(self.dev,self.dev_type)
self.eng.send_is_alive(self.dev,dev_types=self.dev_type)
print("="*70)
self.loop()
......
......@@ -80,12 +80,13 @@ def main():
level = int(sys.argv[1])
eng = Engine()
eng.disable_msg_filter()
eng.subscribe(display)
eng.start()
term('@@')
FORMAT = '%-8.08s=> %-18.18s %-36.36s (%-20.20s) %-16.16s %-50.50s'
print(FORMAT % ('msgType','action','source','devType','targets','body'))
print(FORMAT % ('type','action','source','dev_type','targets','body'))
try:
eng.run()
except KeyboardInterrupt:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment