woooza
This commit is contained in:
parent
3072b7d203
commit
87a76f2e6f
|
@ -265,7 +265,7 @@ class Controller:
|
||||||
|
|
||||||
if not self.connected:
|
if not self.connected:
|
||||||
if (time.time()>self.last_reconnectTry+30):
|
if (time.time()>self.last_reconnectTry+30):
|
||||||
connectToMQTT()
|
self.connectToMQTT()
|
||||||
self.last_reconnectTry=time.time()
|
self.last_reconnectTry=time.time()
|
||||||
self.mqtt.loop(0.1) #with block timeout
|
self.mqtt.loop(0.1) #with block timeout
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue