import paho.mqtt.client as mqtt from alert import Alert #alerts : Alert = [Alert("JUST A TEST1"),Alert("JUST A TEST2")] alerts : Alert = [] client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2) client.connect("192.168.178.36",1884,keepalive=60) client.publish("watchdog/alerts/status","Watchdog-Alerts starting up...")