switched to network mode host + changed init + compose

This commit is contained in:
2022-11-06 10:08:50 +01:00
parent 9ed53939a1
commit 60c47cad0f
3 changed files with 4 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ from flask import Flask # Import the Flask class
app = Flask(__name__) # Create an instance of the class for our use
import paho.mqtt.client as mqtt
print("Starting up...")
client = mqtt.Client("Web2Mqtt")
client.connect("192.168.178.36",1884,keepalive=60)
client.publish("web2mqtt/status","Web2Mqtt starting up...")