Change some settings for paho mqtt v2
Some checks failed
Build and publish Image / build-and-push (push) Failing after 11s

This commit is contained in:
2024-02-19 00:15:41 +00:00
parent e1e0cf0ff2
commit af92529ac8

View File

@@ -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()