Browse Source

Fix MqttBatchPublish

bme680
Mathieu Maret 2 years ago
parent
commit
9ac0f2edb8
  1. 2
      WifiControlSensor/MQTT.ino

2
WifiControlSensor/MQTT.ino

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

Loading…
Cancel
Save