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(); } }