Call DisconnectNetwork(...) before MQTT reconnect

This commit is contained in:
Johan Kanflo 2016-06-21 20:43:02 +02:00
parent c61f39bb1d
commit 3c875cc418

View file

@ -157,6 +157,7 @@ static void mqtt_task(void *pvParameters)
break;
}
printf("Connection dropped, request restart\n\r");
DisconnectNetwork(&network);
taskYIELD();
}
}