esp8266 / esp8266/Arduino

Not message after update OTA

Open
#1,202 10 comments 0 reactions 0 assignees View on GitHub
component: core component: uploader type: enhancement
Dominant language
C++
Stars
16.7k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Description

Sketch code

```
/**
* httpUpdate.ino
*
* Created on: 27.11.2015
*
*/

#include

#include
#include

#include
#include

#define USE_SERIAL Serial

ESP8266WiFiMulti WiFiMulti;

const char* ssid = "*******";
const char* password = "************";

void setup() {

USE_SERIAL.begin(115200);
//USE_SERIAL.setDebugOutput(true);

USE_SERIAL.println();
USE_SERIAL.println();
USE_SERIAL.println();

for(uint8_t t = 4; t > 0; t--) {
USE_SERIAL.printf("[SETUP] WAIT %d...\n", t);
USE_SERIAL.flush();
delay(1000);
}
WiFiMulti.addAP(ssid, password);
}

void loop() {
// wait for WiFi connection
if((WiFiMulti.run() == WL_CONNECTED)) {

t_httpUpdate_return ret = ESPhttpUpdate.update("http://192.168.1.39/OTA/httpUpdate.cpp.bin");
//t_httpUpdate_return ret = ESPhttpUpdate.update("https://server/file.bin");

//USE_SERIAL.println(ret);

USE_SERIAL.println("Finish Update");
USE_SERIAL.println(ret);

switch(ret) {
case HTTP_UPDATE_FAILED:
USE_SERIAL.println("HTTP_UPDATE_FAILED");
break;

case HTTP_UPDATE_NO_UPDATES:
USE_SERIAL.println("HTTP_UPDATE_NO_UPDATES");
break;

case HTTP_UPDATE_OK:
USE_SERIAL.println("HTTP_UPDATE_OK");
break;
}
}
}
```

output console serial port

```
[SETUP] WAIT 4...
[SETUP] WAIT 3...
[SETUP] WAIT 2...
[SETUP] WAIT 1...

ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
@cp:0
ld
```

Why not message 'Update finish' ?
##

Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29070136-not-message-after-update-ota?utm_campaign=plugin&utm_content=tracker%2F14245935&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F14245935&utm_medium=issues&utm_source=github).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.