Skip to content
Snippets Groups Projects
Commit 72191c1f authored by jkerdreu's avatar jkerdreu
Browse files

Cleanup



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2676 b32b6428-25c9-4566-ad07-03861ab6144f
parent 0daab103
Branches
No related tags found
No related merge requests found
......@@ -16,20 +16,6 @@ PACKAGE_NAME = 'xaal.sensefloor'
logger = logging.getLogger(PACKAGE_NAME)
class MotionDev:
def __int__(self,idx,addr):
self.idx = idx
self.addr = addr
class FallDev:
def __int__(self,idx,addr):
self.idx = idx
self.addr = addr
class GW(object):
def __init__(self,engine):
self.engine = engine
......@@ -128,10 +114,10 @@ class GW(object):
def run():
eng = AsyncEngine()
gw = GW(eng)
tasks = [ asyncio.ensure_future(gw.xaal_task()), asyncio.ensure_future(gw.sio_task())]
asyncio.ensure_future(gw.xaal_task())
asyncio.ensure_future(gw.sio_task())
loop = asyncio.get_event_loop()
try:
#loop.run_until_complete(asyncio.wait(tasks))
loop.run_forever()
except KeyboardInterrupt:
print('Bye')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment