-
Notifications
You must be signed in to change notification settings - Fork 56
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
Custom MQTT port is not respected when connecting using tedge connect c8y #2787
Labels
bug
Something isn't working
theme:c8y
Theme: Cumulocity related topics
theme:mqtt
Theme: mqtt and mosquitto related topics
Milestone
Comments
albinsuresh
pushed a commit
to albinsuresh/thin-edge.io
that referenced
this issue
Mar 18, 2024
albinsuresh
pushed a commit
to albinsuresh/thin-edge.io
that referenced
this issue
Mar 18, 2024
13 tasks
albinsuresh
pushed a commit
to albinsuresh/thin-edge.io
that referenced
this issue
Mar 20, 2024
albinsuresh
pushed a commit
to albinsuresh/thin-edge.io
that referenced
this issue
Mar 22, 2024
albinsuresh
pushed a commit
to albinsuresh/thin-edge.io
that referenced
this issue
Mar 22, 2024
albinsuresh
pushed a commit
to albinsuresh/thin-edge.io
that referenced
this issue
Mar 22, 2024
albinsuresh
pushed a commit
to albinsuresh/thin-edge.io
that referenced
this issue
Mar 22, 2024
albinsuresh
pushed a commit
to albinsuresh/thin-edge.io
that referenced
this issue
Mar 28, 2024
albinsuresh
pushed a commit
to albinsuresh/thin-edge.io
that referenced
this issue
Mar 28, 2024
jarhodes314
pushed a commit
to jarhodes314/thin-edge.io
that referenced
this issue
Apr 8, 2024
QA has thoroughly checked the bug and here are the results:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
theme:c8y
Theme: Cumulocity related topics
theme:mqtt
Theme: mqtt and mosquitto related topics
Describe the bug
The
tedge connect c8y
does not use the port given via thec8y.mqtt
configuration setting (feature introduced in #1931).This affects cases where Cumulocity IoT is configured to use a non-default port of 8883.
The code currently incorrectly uses a static value of
8883
(see below):let mut mqtt_options = MqttOptions::new(bridge_config.remote_clientid.clone(), host[0], 8883);
However it must be noted that the
c8y-bridge.conf
uses the configuredc8y.mqtt
host/port.To Reproduce
The easiest way to check this is to set an incorrect port which should cause thin-edge.io not to connect (due to the misconfigured port).
Set the
c8y.url
Set a custom
c8y.mqtt
value which uses an invalid port1234
tedge config set c8y.mqtt thin-edge-io.eu-latest.cumulocity.com:1234
It is expected that the
tedge connect c8y
should fail (due to the incorrect port)Expected behavior
When the user specifies a custom MQTT port using the
c8y.mqtt
configuration.Screenshots
Environment (please complete the following information):
Any
Any
Any
1.0.1
Additional context
The text was updated successfully, but these errors were encountered: