From 8025438b66ad771cd45b87dbe7b332ddae921ac5 Mon Sep 17 00:00:00 2001 From: Matthias Prinke <83612361+matthias-bs@users.noreply.github.com> Date: Mon, 10 Jul 2023 22:48:39 +0200 Subject: [PATCH] Update BresserWeatherSensorMQTT.ino --- .../BresserWeatherSensorMQTT/BresserWeatherSensorMQTT.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/BresserWeatherSensorMQTT/BresserWeatherSensorMQTT.ino b/examples/BresserWeatherSensorMQTT/BresserWeatherSensorMQTT.ino index 7ce67296..51e864ff 100644 --- a/examples/BresserWeatherSensorMQTT/BresserWeatherSensorMQTT.ino +++ b/examples/BresserWeatherSensorMQTT/BresserWeatherSensorMQTT.ino @@ -272,7 +272,7 @@ const char MQTT_PUB_STATUS[] = "/status"; const char MQTT_PUB_RADIO[] = "/radio"; const char MQTT_PUB_DATA[] = "data"; const char MQTT_PUB_RSSI[] = "rssi"; -const char MQTT_PUB_EXTRA[] = "/extra"; +const char MQTT_PUB_EXTRA[] = "extra"; char mqttPubStatus[TOPIC_SIZE]; @@ -551,7 +551,7 @@ void publishWeatherdata(bool complete) client.publish(mqtt_topic, String(weatherSensor.sensor[i].rssi, 1), false, 0); // extra data - mqtt_topic = String(HOSTNAME) + String('/') + String(MQTT_PUB_EXTRA); + mqtt_topic = String(Hostname) + String('/') + String(MQTT_PUB_EXTRA); #if CORE_DEBUG_LEVEL != ARDUHAL_LOG_LEVEL_NONE snprintf(mqtt_payload_tmp, PAYLOAD_SIZE, mqtt_payload2.c_str());