Browse Source

Fix argument type in buttonMQTT for Sonoff Dual

fastled
Xose Pérez 7 years ago
parent
commit
69c3f40761
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      code/espurna/button.ino

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

@ -17,8 +17,8 @@ void buttonMQTT(unsigned char id) {
String mqttGetter = getSetting("mqttGetter", MQTT_USE_GETTER);
char buffer[strlen(MQTT_BUTTON_TOPIC) + mqttGetter.length() + 3];
sprintf(buffer, "%s/%d%s", MQTT_BUTTON_TOPIC, id, mqttGetter.c_str());
mqttSend(buffer, 1);
mqttSend(buffer, 0);
mqttSend(buffer, "1");
mqttSend(buffer, "0");
}
#endif


Loading…
Cancel
Save