Preperations...
This commit is contained in:
23
main.py
Normal file
23
main.py
Normal file
@@ -0,0 +1,23 @@
|
||||
import sys
|
||||
import json
|
||||
import tomllib
|
||||
import paho.mqtt.client as paho
|
||||
import time
|
||||
from utils import load_config, authenticate
|
||||
|
||||
config = load_config()
|
||||
#client = paho.Client(paho.CallbackAPIVersion.VERSION2)
|
||||
#client.username_pw_set(username=config.mqtt.username,password=config.mqtt.password)
|
||||
|
||||
#if client.connect("proliant.lan", 1883, 60) != 0:
|
||||
#print("Couldn't connect to the mqtt broker")
|
||||
#sys.exit(1)
|
||||
|
||||
|
||||
#client.publish("SP500", json.dumps({"value":6349}), 0)
|
||||
#time.sleep(0.5)
|
||||
|
||||
|
||||
#client.disconnect()
|
||||
|
||||
authenticate()
|
||||
Reference in New Issue
Block a user