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