Page 1 of 1

Esp.h wrapper functions

Posted: Sat Apr 11, 2020 9:33 am
by robertpoll
Hi,

Just wanted to get some clarification on the Esp.h library. I can see that some of the functions add some value to the esp-idf functions they wrap - for example: getChipRevision() extracts the revision from the chip_info struct. Some, like flashWrite() don't really add any value, which is fine, but then there are other esp-idf functions like partitionWrite() that aren't included in the library.

So, I'm trying to understand what makes a function a candidate to be included. Is it possibly that any esp-idf functions used by the core or libraries that ship with it get wrapped?

thanks, ...rob

Re: Esp.h wrapper functions

Posted: Sun Apr 12, 2020 6:35 pm
by lbernstone
It was built using the ESP8266 code as a template https://github.com/esp8266/Arduino/blob ... 8266/Esp.h. ESP8266 did not have an underlying framework like IDF. So, there is not necessarily any rhyme or reason what is in there :D