We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The MqttClientOptionsBuilder using WithTcpServer fails with the message "No endpoint is set" while RemoteEndpoint is assigned.
MqttClientOptionsBuilder
WithTcpServer
System.ArgumentException: No endpoint is set. at MQTTnet.Client.MqttClientOptionsBuilder.Build()
var options = new MqttClientOptionsBuilder() .WithTcpServer(s => { s.AddressFamily = System.Net.Sockets.AddressFamily.InterNetwork; s.RemoteEndpoint = new DnsEndPoint(Server.Host, Server.Port); }) .Build();
Doing the following works:
var options = new MqttClientOptionsBuilder() .WithEndPoint(new DnsEndPoint(Server.Host, Server.Port,System.Net.Sockets.AddressFamily.InterNetwork)) .Build();
I'm not sure on the differences between these API's but I think WithTcpServer should be able to be used without WithEndPoint.
WithEndPoint
Maybe WithTcpServer is obsolete?
Steps to reproduce the behavior:
Builder to succeed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The
MqttClientOptionsBuilder
usingWithTcpServer
fails with the message "No endpoint is set" while RemoteEndpoint is assigned.Doing the following works:
I'm not sure on the differences between these API's but I think
WithTcpServer
should be able to be used withoutWithEndPoint
.Maybe
WithTcpServer
is obsolete?Which component is your bug related to?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Builder to succeed.
The text was updated successfully, but these errors were encountered: