Merge pull request #4076 from ascillato/patch-2

Fix Bug for OTA URL if using core STAGE (2.5.0)
This commit is contained in:
Theo Arends 2018-10-16 09:29:53 +02:00 committed by GitHub
commit 45f209810e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2043,7 +2043,8 @@ void Every250mSeconds()
ota_result = (HTTP_UPDATE_FAILED != ESPhttpUpdate.update(mqtt_data));
#else
// If using core stage or 2.5.0+ the syntax has changed
ota_result = (HTTP_UPDATE_FAILED != ESPhttpUpdate.update(EspClient, mqtt_data));
WiFiClient OTAclient;
ota_result = (HTTP_UPDATE_FAILED != ESPhttpUpdate.update(OTAclient, mqtt_data));
#endif
if (!ota_result) {
#ifndef BE_MINIMAL