Closed
Description
There are some APIs from ESP8266 lib ESP missing like:
ESP.getSketchSize()
ESP.getFreeSketchSpace()
ESP.getSketchMD5()
Most interested in getSketchMD5. Working to implement these, but new to esp32 and need to understand the IDF more, so if anyone has hints, these are appreciate. Trying to understand how partitions work, since i think ill have to hash the current working partition, similar to how the esp8266 does it.
Activity
lbernstone commentedon Apr 26, 2018
If you are up to the C coding, the relevant headers are esp_image_format.h and esp_ota_ops.h. I took a quick look, and didn't see an easy way to stream the data through md5builder, but those headers are the place to start. Look through the Update library as well.
timpur commentedon Apr 26, 2018
Thank you :)
timpur commentedon Apr 29, 2018
@lbernstone, question , why does
Update
not use theOver The Air Updates (OTA) APIs
from theESP IDF
?http://esp-idf.readthedocs.io/en/latest/api-reference/system/ota.html
lbernstone commentedon Apr 30, 2018
Not a question for me. I just loiter here. You'll need to have @me-no-dev answer that. He probably wanted more control than just handing off the read and write to the C code.
timpur commentedon Apr 30, 2018
Okay thanks :)
stale commentedon Aug 1, 2019
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
stale commentedon Aug 15, 2019
This stale issue has been automatically closed. Thank you for your contributions.
sillyfrog commentedon Sep 27, 2019
Fixed in #2176