-
Notifications
You must be signed in to change notification settings - Fork 140
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
How to configure for anonymous broker connection? #112
Comments
providing the error might help finding the cause. omitting user and password is possible for sure. You can also set them to NULL. This is basically my minimal setup: EspMQTTClient client(
"WifiSSID",
"WifiPassword",
"hostname", // MQTT Broker server ip
"TestClient" // Client name that uniquely identify your device
); |
Odd, that I did should have worked... EspMQTTClient::EspMQTTClient( I qualified ssid, passphrase, broker ip, client id, then port, but it generates and error. no matching function for call to 'EspMQTTClient::EspMQTTClient(const String&, const String&, const String&, const String&, const int&)' EspMQTTClient theClient( First 4 are string constants, and port is a int constant. |
The method is expecting a You can convert the |
Personally I use #define DEVICE_NAME something
#define BASE_TOPIC DEVICE_NAME "/status/" BASE_TOPIC will be for all the rest I prefer |
How to configure for anonymous broker connection? I set user and password in configuration_t, but getting errors? Per the documentation user and password can be omitted? But still errors.
The text was updated successfully, but these errors were encountered: