main.py 457 B

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