Fix MqttBatchPublish
This commit is contained in:
parent
fea3b73f54
commit
9ac0f2edb8
@ -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…
Reference in New Issue
Block a user