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

I am getting below error while I am connecting to test.mosquitto #1

Open
fervidautomation opened this issue Nov 8, 2020 · 1 comment

Comments

@fervidautomation
Copy link

MQTTClientWrapper::client exception - mqtt-client::ClientIncorrectInstantiationException: Incorrect instantiation, do notinstantiate MqttClient directly, use MqttServerClient or MqttBrowserClient

final String defaultMarkerId = "1";

final String serverUri = "test.mosquitto.org";
final int portNumber = 1883;
final String topicName = "Fervid/Mqtt_client/testtopic";

@mtellis2
Copy link

mtellis2 commented Dec 30, 2020

@fervidautomation change MqttClient to MqttServerClient, MqttClient was replaced with the server class starting from version 6.0.0.

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

2 participants