Call DisconnectNetwork(...) before MQTT reconnect
This commit is contained in:
parent
c61f39bb1d
commit
3c875cc418
1 changed files with 1 additions and 0 deletions
|
@ -157,6 +157,7 @@ static void mqtt_task(void *pvParameters)
|
|||
break;
|
||||
}
|
||||
printf("Connection dropped, request restart\n\r");
|
||||
DisconnectNetwork(&network);
|
||||
taskYIELD();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue