umqtt.robust: Make refactored module actually work for reconnects.

pull/82/head
Paul Sokolovsky 2016-07-24 22:22:43 +03:00
rodzic 2fecbd0312
commit d43faf2d09
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -9,14 +9,14 @@ class MQTTClient(simple.MQTTClient):
def delay(self, i):
utime.sleep(self.DELAY)
def log(self, in_reconnect, exc):
def log(self, in_reconnect, e):
if self.DEBUG:
if in_reconnect:
print("mqtt reconnect: %r" % e)
else:
print("mqtt: %r" % e)
def reconnect(self, i):
def reconnect(self):
i = 0
while 1:
try: