I'm doing fota using https://github.com/nqd/esp8266-dev but the GET request from the system_upgrade_start() function is not being seen at my webserver. Here's the evidence:
On the ESP side:
Code: Select all
FOTA client: Connect to ip 192.168.0.16:80
FOTA Client: Sent request
FOTA Client: Request timeout, close connection
FOTA Client: Disconnect
Final response: {"application":"otaupdate","last":{"version":"0.0.2","created":"2015-11-19T14:59:04.090Z","protocol":"http:","host":"192.168.0.16","path":"/firmwares/564de3b81fce1d320de52ffd/download"}}
Version 0.0.2
Host 192.168.0.16
Path /firmwares/564de3b81fce1d320de52ffd/download
Protocol http:
FOTA Client: Preparing to get firmware
Firmware client: Connect to 192.168.0.16:80
Firmware client: Connected
system_upgrade_start
upgrade_connect
upgrade_connect_cb
GET /firmwares/564de3b81fce1d320de52ffd/download HTTP/1.1
Host: 192.168.0.16
Connection: keep-alive
Cache-Control: no-cache
User-Agent: ESP8266
Accept: */*
Content-Type: application/json
HEAD /firmwares/564de3b81fce1d320de52ffd/download HTTP/1.1
Host: 192.168.0.16
Connection: close
Cache-Control: no-cache
User-Agent: ESP8266
Accept: */*
Content-Type: application/json
On the webserver side:
Code: Select all
GET /api/otaupdate/versions/image2 200 4.064 ms - 186
HEAD /firmwares/564de3b81fce1d320de52ffd/download - - ms - -
So, the HEAD request is received fine but not the GET request. Can the folks at Espressif explain why this is the case?
PS: I've also asked this to the esp8266-dev author but I'm not sure which party will be able to assist..