Skip to content

Conversation

jacegalvin
Copy link
Contributor

Added a script for subscribing to an organisation's MQTT datastream and outputting the results as raw JSON or in table format.

Added a script for subscribing to a customer's MQTT datastream and outputting the results as raw JSON or in table format.

Signed-off-by: Jace Galvin <[email protected]>
print("Exiting...")
client.disconnect()
except ConnectionError as e:
print("Connection failed: ", e)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Program should terminate with an error code, e.g. sys.exit(f"Connection failed: {e}")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Added `sys_exit()` on connection error to terminate program with a proper error code.

Signed-off-by: Jace Galvin <[email protected]>
@JordanYates JordanYates merged commit e0a48be into main Feb 6, 2025
4 checks passed
@JordanYates JordanYates deleted the feature/cloud_mqtt_example branch February 6, 2025 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants