mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
Update mqtt_client.cpp
This commit is contained in:
parent
c9cd1257c3
commit
84bc464aa6
@ -371,7 +371,7 @@ bool MQTTClientComponent::publish(const std::string &topic, const char *payload,
|
|||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
ESP_LOGV(TAG, "Publish(topic='%s' payload='%s' retain=%d)", topic.c_str(), payload, retain);
|
ESP_LOGV(TAG, "Publish(topic='%s' payload='%s' retain=%d)", topic.c_str(), payload, retain);
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGW(TAG, "Publish failed for topic='%s' will retry later..", topic.c_str());
|
ESP_LOGV(TAG, "Publish failed for topic='%s' will retry later..", topic.c_str());
|
||||||
this->status_momentary_warning("publish", 1000);
|
this->status_momentary_warning("publish", 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user