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
  • Loading branch information
cpinkham committed Jan 28, 2020
1 parent 157381f commit 2214e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fppd.c
Original file line number Diff line number Diff line change
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 2214e8c

Please sign in to comment.