From 3c875cc4189bb2ccf927aa6950597543469a992d Mon Sep 17 00:00:00 2001 From: Johan Kanflo Date: Tue, 21 Jun 2016 20:43:02 +0200 Subject: [PATCH] Call DisconnectNetwork(...) before MQTT reconnect --- examples/mqtt_client/mqtt_client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/mqtt_client/mqtt_client.c b/examples/mqtt_client/mqtt_client.c index fdf86c3..3ec50c5 100644 --- a/examples/mqtt_client/mqtt_client.c +++ b/examples/mqtt_client/mqtt_client.c @@ -157,6 +157,7 @@ static void mqtt_task(void *pvParameters) break; } printf("Connection dropped, request restart\n\r"); + DisconnectNetwork(&network); taskYIELD(); } }