Skip to content

Commit 2f04915

Browse files
bretambroseBret AmbrosesbSteveK
authored
Why was this using mqtt5 publish completion contract? (#632)
Co-authored-by: Bret Ambrose <[email protected]> Co-authored-by: Steve Kim <[email protected]>
1 parent b7b112d commit 2f04915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/basic_discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def on_publish(topic, payload, dup, qos, retain, **kwargs):
104104
messageJson = json.dumps(message)
105105
pub_future, _ = mqtt_connection.publish(cmdData.input_topic, messageJson, QoS.AT_LEAST_ONCE)
106106
publish_completion_data = pub_future.result()
107-
print('Published topic {}: {} (puback reason: {})\n'.format(cmdData.input_topic, messageJson, repr(publish_completion_data.puback.reason_code)))
107+
print('Successfully published to topic {} with payload `{}`\n'.format(cmdData.input_topic, messageJson))
108108

109109
loop_count += 1
110110
time.sleep(1)

0 commit comments

Comments
 (0)