12345678910111213141516171819202122232425 |
- # from app import generate_app
- # app = generate_app()
- from lib.Connection_e1 import SRIConnection
- import asyncio
- def main():
- asyncio.run(SRIConnection.run())
- # 监听mqtt消息服务
- # from lib.MessageListener import MessageListener
- # MessageListener.run_background(background_is=False)
- # 给websocket发数据的
- # from factories.line_manage import LineManage
- # LineManage.run_background()
- # websocket服务 与 api服务
- # app.run(address='0.0.0.0', port=5042, debug=True)
- if __name__ == '__main__':
- main()
|