mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-08-01 03:35:11 +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:
@@ -235,7 +235,7 @@ esp_mqtt_set_transport_failed:
|
||||
/* Checks if the user supplied config values are internally consistent */
|
||||
static esp_err_t esp_mqtt_check_cfg_conflict(const mqtt_config_storage_t *cfg, const esp_mqtt_client_config_t *user_cfg)
|
||||
{
|
||||
if(cfg == NULL || user_cfg == NULL) {
|
||||
if (cfg == NULL || user_cfg == NULL) {
|
||||
ESP_LOGE(TAG, "Invalid configuration");
|
||||
return ESP_ERR_INVALID_ARG;
|
||||
}
|
||||
@@ -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