From 5fad8fb73b2436c91d2e7b9a4738a5c7d9340a17 Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 12 Dec 2024 15:47:08 -0500 Subject: [PATCH] Fixed issue where port and IP address are not initialized in the config file. --- src/input/InputMQTT.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/input/InputMQTT.cpp b/src/input/InputMQTT.cpp index a02bfcd49..ffa1c5cf9 100644 --- a/src/input/InputMQTT.cpp +++ b/src/input/InputMQTT.cpp @@ -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; @@ -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; @@ -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; }