Commit 5dad29e
umqtt.robust: Let reconnect() call the connect() method of parent class.
This allow overriding of the `connect()` method by a subclass, eg:
from umqtt import robust
class MQTTClient(robust.MQTTClient):
def connect(self, clean_session=True):
res = super().connect(clean_session)
self.after_connect()
return res
def after_connect():
# use for mqtt subscribe
return1 parent 1852c01 commit 5dad29e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments