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
after setting client ID, ESP32 tries to connect as anonymous user.
here is the code where I set my connection credentials.
mqttClient.setServer(const_cast <char*>(configurations.brokerAddress.c_str()), configurations.brokerPort); mqttClient.setCredentials(const_cast<char*>(configurations.brokerUser.c_str()), const_cast<char*>(configurations.brokerPassword.c_str()));
String clientID = WiFi.macAddress(); clientID = clientID + generateRandomString(10);
mqttClient.setClientId(const_cast<char*>(clientID.c_str())); .
The text was updated successfully, but these errors were encountered:
No branches or pull requests
after setting client ID, ESP32 tries to connect as anonymous user.
here is the code where I set my connection credentials.
mqttClient.setServer(const_cast <char*>(configurations.brokerAddress.c_str()), configurations.brokerPort);
mqttClient.setCredentials(const_cast<char*>(configurations.brokerUser.c_str()), const_cast<char*>(configurations.brokerPassword.c_str()));
String clientID = WiFi.macAddress();
clientID = clientID + generateRandomString(10);
mqttClient.setClientId(const_cast<char*>(clientID.c_str()));
.
The text was updated successfully, but these errors were encountered: