main.py 558 B

12345678910111213141516171819202122232425
  1. # from app import generate_app
  2. # app = generate_app()
  3. from lib.Connection_e1 import SRIConnection
  4. import asyncio
  5. def main():
  6. asyncio.run(SRIConnection.run())
  7. # 监听mqtt消息服务
  8. # from lib.MessageListener import MessageListener
  9. # MessageListener.run_background(background_is=False)
  10. # 给websocket发数据的
  11. # from factories.line_manage import LineManage
  12. # LineManage.run_background()
  13. # websocket服务 与 api服务
  14. # app.run(address='0.0.0.0', port=5042, debug=True)
  15. if __name__ == '__main__':
  16. main()