Skip to content

ESP Specific APIs - Missing API's #1358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
timpur opened this issue Apr 26, 2018 · 8 comments
Closed

ESP Specific APIs - Missing API's #1358

timpur opened this issue Apr 26, 2018 · 8 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@timpur
Copy link
Contributor

timpur commented Apr 26, 2018

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.

@lbernstone
Copy link
Contributor

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
Copy link
Contributor Author

timpur commented Apr 26, 2018

Thank you :)

@timpur
Copy link
Contributor Author

timpur commented Apr 29, 2018

@lbernstone, question , why does Update not use the Over The Air Updates (OTA) APIs from the ESP IDF ?

http://esp-idf.readthedocs.io/en/latest/api-reference/system/ota.html

@lbernstone
Copy link
Contributor

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
Copy link
Contributor Author

timpur commented Apr 30, 2018

Okay thanks :)

@stale
Copy link

stale bot commented 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 stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Aug 1, 2019
@stale
Copy link

stale bot commented Aug 15, 2019

This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Aug 15, 2019
@sillyfrog
Copy link

Fixed in #2176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

3 participants