Fix MqttBatchPublish

This commit is contained in:
Mathieu Maret 2019-06-04 23:18:17 +02:00
parent fea3b73f54
commit 9ac0f2edb8

View File

@ -77,7 +77,7 @@ Adafruit_MQTT_Publish *MqttCreatePublisher( uint8_t qos, uint8_t retain, const c
int MqttBatchPublish(std::vector<struct mqttInfo> tab, ...) { int MqttBatchPublish(std::vector<struct mqttInfo> tab, ...) {
if (!MqttConnect()) { if (MqttConnect()) {
SKETCH_DEBUG_PRINTLN("cannot connect to mqtt"); SKETCH_DEBUG_PRINTLN("cannot connect to mqtt");
return -1; return -1;
} }