mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-08-02 04:05:08 +02:00
Merge branch 'cherry-pick-fa40f446' into 'master'
Merge branch 'bugfix/return_on_qos0_disconnected' into 'master' See merge request espressif/esp-mqtt!175
This commit is contained in:
@@ -2007,6 +2007,8 @@ int esp_mqtt_client_publish(esp_mqtt_client_handle_t client, const char *topic,
|
|||||||
ESP_LOGD(TAG, "Publish: client is not connected");
|
ESP_LOGD(TAG, "Publish: client is not connected");
|
||||||
if (qos > 0) {
|
if (qos > 0) {
|
||||||
ret = pending_msg_id;
|
ret = pending_msg_id;
|
||||||
|
} else {
|
||||||
|
ret = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// delete long pending messages
|
// delete long pending messages
|
||||||
|
Reference in New Issue
Block a user