Esp.h wrapper functions

robertpoll
Posts: 1
Joined: Tue Mar 03, 2020 2:44 pm

Esp.h wrapper functions

Postby robertpoll » Sat Apr 11, 2020 9:33 am

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

lbernstone
Posts: 827
Joined: Mon Jul 22, 2019 3:20 pm

Re: Esp.h wrapper functions

Postby lbernstone » Sun Apr 12, 2020 6:35 pm

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

Who is online

Users browsing this forum: No registered users and 33 guests