hub.py 679 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='127.0.0.1', port=41883)
  8. aps = importlib.import_module(f"xpip.xapscheduler").APS(db_type='mongo',
  9. db_host='127.0.0.1',
  10. db_port=27017,
  11. username='admin', password='admin',
  12. database='bg', collection='LoopTask')