Skip to content

Commit

Permalink
Fixed issue where port and IP address are not initialized in the conf…
Browse files Browse the repository at this point in the history
…ig file.
  • Loading branch information
MartinMueller2003 committed Dec 12, 2024
1 parent 592f032 commit 5fad8fb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/input/InputMQTT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ void c_InputMQTT::GetConfig (JsonObject & jsonConfig)
// DEBUG_START;

// Serialize Config
jsonConfig[CN_ip] = ip;
jsonConfig[CN_port] = port;
jsonConfig[CN_user] = user;
jsonConfig[CN_password] = password;
jsonConfig[CN_topic] = topic;
Expand Down Expand Up @@ -164,10 +166,14 @@ void c_InputMQTT::Process ()
pEffectsEngine->Process ();
}

if (nullptr != pPlayFileEngine)
else if (nullptr != pPlayFileEngine)
{
pPlayFileEngine->Poll ();
}
else
{
// DEBUG_V("No active data generation channel");
}
}

// DEBUG_END;
Expand Down Expand Up @@ -411,7 +417,7 @@ void c_InputMQTT::onMqttMessage(
// if its a retained message and we want a clean session, ignore it
if (properties.retain && CleanSessionRequired)
{
// DEBUG_V ("");
// DEBUG_V ("Ignore retained session.");
break;
}

Expand Down

0 comments on commit 5fad8fb

Please sign in to comment.