Finished a first version with basic outputs
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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...")
|
||||
Reference in New Issue
Block a user