Skip to content

Commit

Permalink
Merge pull request #239 from sparks-baird/sgbaird-patch-6
Browse files Browse the repository at this point in the history
paho mqtt v2.0.0
  • Loading branch information
sgbaird authored Feb 12, 2024
2 parents 3a9e126 + 9dd400b commit 96d4397
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/self_driving_lab_demo/utils/observe.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Based on the following resource:
https://www.steves-internet-guide.com/receiving-messages-mqtt-python-clientq=Queue() # noqa: E501
"""

import ast
import json
import logging
Expand Down
8 changes: 6 additions & 2 deletions tests/sdl_demo_light_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ def test_bad_rgb_payload_values():


def get_client():
client = paho.Client(protocol=paho.MQTTv5) # create new instance
client = paho.Client(
paho.CallbackAPIVersion.VERSION1, protocol=paho.MQTTv5
) # create new instance
client.on_connect = on_connect
client.on_message = on_message

Expand Down Expand Up @@ -210,7 +212,9 @@ def assert_error(session_id, experiment_id, client):


def test_bad_json_payload():
client = paho.Client(protocol=paho.MQTTv5) # create new instance
client = paho.Client(
paho.CallbackAPIVersion.VERSION1, protocol=paho.MQTTv5
) # create new instance
client.on_connect = on_connect
client.on_message = on_message

Expand Down

0 comments on commit 96d4397

Please sign in to comment.