Compare commits

...

2 Commits

Author SHA1 Message Date
2adc527693 update paho to v2
Some checks failed
Build and publish Image / build-and-push (push) Failing after 17s
2024-02-19 00:16:55 +00:00
af92529ac8 Change some settings for paho mqtt v2
Some checks failed
Build and publish Image / build-and-push (push) Failing after 11s
2024-02-19 00:15:41 +00:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
paho-mqtt==1.6.1 paho-mqtt~=2.0.0
bottle==0.12.25 bottle==0.12.25
defusedxml==0.7.1 defusedxml==0.7.1

View File

@@ -26,7 +26,7 @@ class Client ( mqtt.Client ):
self.on_connect = Client.on_connect self.on_connect = Client.on_connect
self.on_message = Client.on_message self.on_message = Client.on_message
def on_connect( self, userData, flags, rc ): def on_connect( self, userData, flags, reason_code, properties ):
self.subscribe( '#' ) self.subscribe( '#' )
def on_message( self, userData, msg ): def on_message( self, userData, msg ):
@@ -62,4 +62,4 @@ client.loop_start()
while True: while True:
pass pass
client.loop_stop( force=True ) client.loop_stop()