Skip to content

Commit

Permalink
MQTT: Fix authentication error with VS Build Tools 2019
Browse files Browse the repository at this point in the history
  • Loading branch information
kumajaya authored and azoitl committed Feb 29, 2024
1 parent e22966b commit 1dd2787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/mqtt_paho/MQTTClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ int CMQTTClient::initClient() {
mClientConnectionOptions.onFailure = onMqttConnectionFailed;
mClientConnectionOptions.context = this;

std::string username;
std::string password;
if ("" != gMqttClientConfigFile) { //file was provided
std::string username;
std::string password;
CMQTTClientConfigFileParser::MQTTConfigFromFile result = CMQTTClientConfigFileParser::MQTTConfigFromFile(username, password);
if (CMQTTClientConfigFileParser::loadConfig(gMqttClientConfigFile, mAddress, result)) {
mClientConnectionOptions.username = username.c_str();
Expand Down

0 comments on commit 1dd2787

Please sign in to comment.