Closed neildes2 closed 4 months ago
Are you setting the MqttPort in the cfg file or in the URL? If it is in the URL, it gets set to Port
and then should work.
I'll test this. I'm working on some other MQTT related issues and will roll this into the current changes.
We have the Port on a separate line. I will test on the same line
Confirmed. If port on url line instead of on separate line, it will connect with defined port#
Can I close this?
Only if it has been fixed. I have a bunch of agent.cfg with port on separate line. We are holding off on upgrade until we have a fix.
I think this in fixed in 15. The port is defaulted, not hard coded. I have been having issues with mosquito on alternate ports. I tested and it tried to connect except mosquito was a pain.
Could not connect with their tools either.
See if it works with new build.
Best W
The two lines above check if the options have been set and if they are not it defaults. It should not override unless not set. That’s why I need to see the lines in the cfg to reproduce.
The port is being set properly in my tests using the same configuration. I have checked with the 472 configuration and it seems to work fine. Can you verify in build 15.
Tested alt port. Needed to set allow_anonymous
to true. Looks like it only defaults to true when 1883 is used.
Anyway, seems to be working with same config as 472.
Could also be URL parsing error with trailing slash. May not be port but host.
I have created a PR for the next version on branch 472_adaper_startup_issues
Is there any way you can test this branch before I merge to main?
Downloading now to build and test
Fixed in build 2.3.0.16
Please test this in the latest build.
Confirmed this issue is resolved in V2.3.0.16
Agent.cfg has mqtt port set to 1885 and agent is overriding to 1883 causing no connection.
MqttPort = 1885