Skip to content

Commit

Permalink
Fix mqtt login with a password
Browse files Browse the repository at this point in the history
Fix the false reading from the config
  • Loading branch information
Nikey authored Sep 14, 2023
1 parent bd1d6b8 commit c6104bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MqttService/src/MqttService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ void MqttService::parseMqttBrokerUrl(const String& mqttBrokerUrl)
/* Password not empty? */
if (idx > (dividerIdx + 1))
{
m_password = m_url.substring(dividerIdx + 1, idx - dividerIdx - 1);
m_password = m_url.substring(dividerIdx + 1, idx);
}
}

Expand Down

0 comments on commit c6104bf

Please sign in to comment.