mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-29 18:28:24 +02:00
Merge branch 'fix/clean_transport' into 'master'
fix: set TCP transport every time when setting the config See merge request espressif/esp-mqtt!218
This commit is contained in:
@ -521,9 +521,8 @@ esp_err_t esp_mqtt_set_config(esp_mqtt_client_handle_t client, const esp_mqtt_cl
|
||||
} else {
|
||||
client->config->reconnect_timeout_ms = MQTT_RECON_DEFAULT_MS;
|
||||
}
|
||||
if (config->network.transport) {
|
||||
client->config->transport = config->network.transport;
|
||||
}
|
||||
|
||||
client->config->transport = config->network.transport;
|
||||
|
||||
if (config->network.if_name) {
|
||||
client->config->if_name = calloc(1, sizeof(struct ifreq) + 1);
|
||||
|
Reference in New Issue
Block a user