added keepalive

This commit is contained in:
2022-10-02 18:37:11 +02:00
parent 7f4a9a51ec
commit b881ca159f

View File

@@ -4,5 +4,5 @@ app = Flask(__name__) # Create an instance of the class for our use
import paho.mqtt.client as mqtt
client = mqtt.Client("Web2Mqtt")
client.connect("192.168.178.76",1884)
client.connect("192.168.178.76",1884,keepalive=60)
client.publish("web2mqtt/status","Web2Mqtt starting up...")