bugfix
This commit is contained in:
parent
3b5c2cf836
commit
94a087758f
@ -5,7 +5,7 @@ import argparse
|
||||
from appPublic.log import MyLogger, info, debug, warning
|
||||
from appPublic.folderUtils import ProgramPath
|
||||
from appPublic.jsonConfig import getConfig
|
||||
from appPublic.zmqapi import run_proxy
|
||||
from appPublic.zmqapi import run_proxy, zmq_subscribe
|
||||
from appPublic.registerfunction import RegisterFunction
|
||||
from bricks_for_python.init import load_pybricks
|
||||
from ahserver.webapp import webapp
|
||||
@ -55,7 +55,10 @@ async def msg_handler(msgstr):
|
||||
async def woa_msghande():
|
||||
config = getConfig()
|
||||
debug(f'woa_msghander on({config.woa_handler_id}) starting ....')
|
||||
try:
|
||||
await zmq_subscribe(config.woa_handler_id, msg_handler)
|
||||
except Exception as e:
|
||||
debug(f'Exception:{e}')
|
||||
debug('woa_msghandler stopped.................')
|
||||
|
||||
def init():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user