Browse Source

Fix mqtt topic with ending slash (#1755)

master
reaper7 5 years ago
committed by Max Prokhorov
parent
commit
c5d4a1f7a6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/mqtt.ino

+ 1
- 1
code/espurna/mqtt.ino View File

@ -254,7 +254,7 @@ void _mqttConfigure() {
// Get base topic and apply placeholders
{
String topic = getSetting("mqttTopic", MQTT_TOPIC);
if (topic.endsWith("/")) topic.remove(_mqtt_topic.length()-1);
if (topic.endsWith("/")) topic.remove(topic.length()-1);
// Replace things inside curly braces (like {hostname}, {mac} etc.)
_mqttPlaceholders(topic);


Loading…
Cancel
Save