Skip to content

Commit

Permalink
Set the default port to be used for MQTT connections.
Browse files Browse the repository at this point in the history
(cherry picked from commit 2214e8c)
  • Loading branch information
cpinkham authored and dkulp committed Jan 29, 2020
1 parent ac73720 commit 5292a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fppd.c
Expand Up @@ -627,7 +627,7 @@ int main(int argc, char *argv[])

CommandManager::INSTANCE.Init();
if (strcmp(getSetting("MQTTHost"),"")) {
mqtt = new MosquittoClient(getSetting("MQTTHost"), getSettingInt("MQTTPort"), getSetting("MQTTPrefix"));
mqtt = new MosquittoClient(getSetting("MQTTHost"), getSettingInt("MQTTPort",1883), getSetting("MQTTPrefix"));

if (!mqtt || !mqtt->Init(getSetting("MQTTUsername"), getSetting("MQTTPassword"), getSetting("MQTTCaFile")))
exit(EXIT_FAILURE);
Expand Down

0 comments on commit 5292a02

Please sign in to comment.