From 4b7df6373893518980030f628e5e863cfd0b9a5c Mon Sep 17 00:00:00 2001 From: White Red Date: Wed, 20 Nov 2024 19:20:09 +0200 Subject: [PATCH] fix mqtt topic assignment --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index e26886e..428eb41 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1074,6 +1074,8 @@ void setupWeb() { rfidTopic.append("homeassistant/tag/").append(espConfig::mqttData.mqttClientId).append("/rfid/config"); esp_mqtt_client_publish(client, rfidTopic.c_str(), "", 0, 0, false); } + } else if (!strcmp(p->name().c_str(), "mqtt-btrprox-cmd-topic")) { + espConfig::mqttData.btrLvlCmdTopic = p->value().c_str(); } } json json_mqtt_config = espConfig::mqttData;