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

MQTT client configuration is broken after #2672 #2827

Closed
1 of 5 tasks
einarmo opened this issue Oct 30, 2024 · 0 comments
Closed
1 of 5 tasks

MQTT client configuration is broken after #2672 #2827

einarmo opened this issue Oct 30, 2024 · 0 comments
Assignees

Comments

@einarmo
Copy link
Contributor

einarmo commented Oct 30, 2024

Type of issue

  • Bug
  • Enhancement
  • Compliance
  • Question
  • Help wanted

Current Behavior

Currently, any MQTT client configuration (like broker URL) provided when calling UaPubSubApplication.Create is ignored since client options are created here, but configuration isn't applied until here and here, which are in if != null guards, which will always stop the options from being recreated.

This makes pubsub essentially not work at all on both the client and server.

Expected Behavior

No response

Steps To Reproduce

  1. Configure a publisher or subscriber using UaPubSubApplication.Create, you can try setting a custom MQTT endpoint, like running a broker on a different port than 1883.
  2. Observe the logs, which will state Error while connecting host 'Unspecified/localhost:1883'

Environment

- OS: Linux
- Environment: Command line
- Runtime: .NET 8
- Nuget Version: 1.5.374.126-beta
- Component: Opc.Ua.PubSub
- Server: Custom server using this SDK
- Client: N/A

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants