Browse Source

Fix the mqttTopicKey method

i18n
Xose Pérez 7 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);
if (response.startsWith(start) && response.endsWith(end)) {
response.remove(0, position);
response.remove(position + 1);
response.replace(start, "");
response.replace(end, "");
} else {
response = String();
}


Loading…
Cancel
Save