Skip to content

Add HTTP header with MD5 sum to ESP8266httpUpdate OTA update #2228

Closed
@JeroenVogelpoel

Description

@JeroenVogelpoel

Considering that we now have access to ESP.getSketchSize() and ESP.getSketchMD5(), I would like to ask that an HTTP header with the key 'x-ESP8266-sketch-md5' and the value of the 'String(ESP.getSketchMD5()))' call be added to Arduino/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp

The rationale behind this is that if the MD5 sums match; the binary to be loaded is the same as the one already on device and we can skip the upload with HTTP response code 304 (Not Modified) meaning no binary will be transfered and no flashing will be done.

It's a bit more solid imho than a freeform version string that needs to be persisted somewhere.

Thoughts/opinions?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions