Change some settings for paho mqtt v2
Some checks failed
Build and publish Image / build-and-push (push) Failing after 11s
Some checks failed
Build and publish Image / build-and-push (push) Failing after 11s
This commit is contained in:
@@ -26,7 +26,7 @@ class Client ( mqtt.Client ):
|
||||
self.on_connect = Client.on_connect
|
||||
self.on_message = Client.on_message
|
||||
|
||||
def on_connect( self, userData, flags, rc ):
|
||||
def on_connect( self, userData, flags, reason_code, properties ):
|
||||
self.subscribe( '#' )
|
||||
|
||||
def on_message( self, userData, msg ):
|
||||
@@ -62,4 +62,4 @@ client.loop_start()
|
||||
while True:
|
||||
pass
|
||||
|
||||
client.loop_stop( force=True )
|
||||
client.loop_stop()
|
||||
|
||||
Reference in New Issue
Block a user