hub.py 684 B

1234567891011121314151617
  1. import sys
  2. import importlib
  3. sys.path.append('../3rdparty')
  4. methods = importlib.import_module(f"xlib")
  5. class Global(object):
  6. # --- 中间件服务器 ---
  7. emqx = importlib.import_module(f"xclient.xmqtt").Client(host='10.10.61.229', port=41883)
  8. aps = importlib.import_module(f"xpip.xapscheduler").APS(db_type='mongo',
  9. db_host='58.34.94.176',
  10. db_port=7030,
  11. username='admin', password='admin',
  12. database='bg', collection='LoopTask')