Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] MQTTX CLI -- mqttx conn hangs after connection #1810

Closed
oising opened this issue Nov 14, 2024 · 4 comments
Closed

[Bug] MQTTX CLI -- mqttx conn hangs after connection #1810

oising opened this issue Nov 14, 2024 · 4 comments
Assignees
Labels
CLI MQTTX CLI discussion This issues and pr are worth discussing enhancement New feature or request
Milestone

Comments

@oising
Copy link

oising commented Nov 14, 2024

What did I do

Whether passing via explicit args, or using saved json config, mqttx conn hangs after connecting. Is this meant to hang, or open a shell? What is the point of this functionality? If it's meant to test connection, it should close once connected successfully. Very confusing.

What happened

mqttx hangs.

image

Expected

Absolutely no idea.

Environment

windows 11 arm64, SL7, node 22

More detail

More detail include log information or screenshot

@oising oising added the bug Something isn't working label Nov 14, 2024
@github-project-automation github-project-automation bot moved this to Backlog in MQTTX Nov 14, 2024
@ysfscream ysfscream self-assigned this Nov 15, 2024
@ysfscream ysfscream added wontfix This will not be worked on discussion This issues and pr are worth discussing and removed bug Something isn't working labels Nov 15, 2024
@ysfscream
Copy link
Member

The mqttx conn behavior is working as intended. It's designed to establish and maintain an MQTT connection - MQTT is built around sessions and persistent connections. The "hanging" state indicates a successful active connection.

You can:

  • Use Ctrl+C to disconnect when done
  • Use pub for publishing messages
  • Use sub for subscribing
  • Try bench or simulate for advanced scenarios

If you just need to verify connectivity, you can Ctrl+C after a successful connection.

@ysfscream ysfscream moved this from Backlog to Reject in MQTTX Nov 15, 2024
@ysfscream ysfscream added this to the v1.11.1 milestone Nov 15, 2024
@oising
Copy link
Author

oising commented Nov 18, 2024

You could make it more explicit my emitting "Press ctrl+c to exit"

@ysfscream
Copy link
Member

You could make it more explicit my emitting "Press ctrl+c to exit"

Good suggestions, thank you.

@ysfscream ysfscream added enhancement New feature or request CLI MQTTX CLI and removed wontfix This will not be worked on labels Dec 3, 2024
@ysfscream ysfscream moved this from Reject to In Progress in MQTTX Dec 3, 2024
@ysfscream
Copy link
Member

Try https://github.com/emqx/MQTTX/releases/tag/v1.11.1 Thanks.

@github-project-automation github-project-automation bot moved this from In Progress to Done in MQTTX Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI MQTTX CLI discussion This issues and pr are worth discussing enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants