mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-30 10:48:06 +02:00
Merge branch 'bugfix/return_on_qos0_disconnected' into 'master'
bug: Incorrect return on disconnect qos0 publish See merge request espressif/esp-mqtt!172 (cherry picked from commit fa40f44695fc4a0cde14a31a01b8a03da14dd702) 58c25577 bug: Incorrect return on disconnect qos0 publish
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");
|
||||
if (qos > 0) {
|
||||
ret = pending_msg_id;
|
||||
} else {
|
||||
ret = -1;
|
||||
}
|
||||
|
||||
// delete long pending messages
|
||||
|
Reference in New Issue
Block a user