MUST include empty void “MQTT_connect” function declaration  or will
crash with 2 publish feeds on ESP8266
This commit is contained in:
Stuart Feichtinger 2016-01-19 16:01:20 -06:00
parent 2876ac43dd
commit cda4a5d7d4

View File

@ -706,15 +706,7 @@ bool Adafruit_MQTT_Publish::publish(const char *payload) {
} }
bool Adafruit_MQTT_Publish::publish(uint8_t *payload, uint8_t bLen) { bool Adafruit_MQTT_Publish::publish(uint8_t *payload, uint8_t bLen) {
/*
Serial.print(F("Publish 1\nbLen:\t"));
Serial.println(bLen);
for(int i = 0; i < bLen; i++){
Serial.print(payload[i], HEX);
}
Serial.println(F("Exit publish 1"));
return 0;
*/
return mqtt->publish(topic, payload, bLen, qos); return mqtt->publish(topic, payload, bLen, qos);
} }