Skip to content

Commit

Permalink
Checking trailing slash in mqttTopic (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoseperez committed Jan 28, 2018
1 parent cba621d commit fce0dbd
Show file tree
Hide file tree
Showing 4 changed files with 2,414 additions and 2,411 deletions.
Binary file modified code/espurna/data/index.html.gz
Binary file not shown.
1 change: 1 addition & 0 deletions code/espurna/mqtt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ void _mqttConfigure() {

// Get base topic
_mqtt_topic = getSetting("mqttTopic", MQTT_TOPIC);
if (_mqtt_topic.endsWith("/")) _mqtt_topic.remove(_mqtt_topic.length()-1);
if (_mqtt_topic.indexOf("#") == -1) _mqtt_topic = _mqtt_topic + "/#";

// Placeholders
Expand Down
Loading

0 comments on commit fce0dbd

Please sign in to comment.