Browse Source

Fix the mqttTopicKey method

i18n
Xose Pérez 6 years ago
parent
commit
c990f0c0ca
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      code/espurna/mqtt.ino

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

@ -389,8 +389,8 @@ String mqttTopicKey(char * topic) {
String response = String(topic); String response = String(topic);
if (response.startsWith(start) && response.endsWith(end)) { if (response.startsWith(start) && response.endsWith(end)) {
response.remove(0, position);
response.remove(position + 1);
response.replace(start, "");
response.replace(end, "");
} else { } else {
response = String(); response = String();
} }


Loading…
Cancel
Save