Merge pull request #150 from kanflo/mqtt_fix

Call DisconnectNetwork(...) before MQTT reconnect
This commit is contained in:
Angus Gratton 2016-06-23 17:23:24 +10:00 committed by GitHub
commit 26dd3f1c79

View file

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