Reports config conflicts error to the user

- Configuration conflicts were verified, logged but not reported to the
  user.
This commit is contained in:
Euripedes Rocha authored and David Čermák committed 2021-09-15 15:09:23 +08:00
1 parent 026ea95338
commit 88f4b8ed50
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -375,6 +375,7 @@ esp_err_t esp_mqtt_client_destroy(esp_mqtt_client_handle_t client);
* @param config mqtt configuration structure
*
* @return ESP_ERR_NO_MEM if failed to allocate
* ESP_ERR_INVALID_ARG if conflicts on transport configuration.
* ESP_OK on success
*/
esp_err_t esp_mqtt_set_config(esp_mqtt_client_handle_t client, const esp_mqtt_client_config_t *config);