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

Error while authenticating. The operation has timed out #1

Open
Resultfactory opened this issue Nov 5, 2022 · 0 comments
Open

Error while authenticating. The operation has timed out #1

Resultfactory opened this issue Nov 5, 2022 · 0 comments

Comments

@Resultfactory
Copy link

Hi and compliments on this great sample! We are trying to build the same architecture using hivemq and MQTTnet but when trying to connect to the hivemq broker on :1883 we keep getting an error 'Error while authenticating. The operation has timed out'. Where can we check what is wrong?
var options = new MqttClientOptionsBuilder()
.WithTcpServer("192.168.1.109", 1883)
.WithClientId("bst-001")
.WithCleanSession()
.Build();

            // handlers
            _client.ConnectedAsync += OnConnectedAsync;
            _client.ConnectingAsync += _client_ConnectingAsync;
            _client.DisconnectedAsync += OnDisconnectedAsync;
            _client.ApplicationMessageReceivedAsync += OnApplicationMessageReceivedAsync;

            // connect
            await _client.ConnectAsync(options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant