Hey folks,
I am using platformio with vscode and I am trying to implement Finite Time Measurement (FTM) in my project however I am having dependency issues at compile time that seem to be related platformio not being up to date on new functions offered by ESP. Hence I was wondering what your options / thoughts were about this.
I am trying to use the function esp_wifi_ftm_get_report() however this function is “not declared in this scope” in the platformio reference that my project is using :
~/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32c3/include/esp_wifi/include$
Since I had red squiggly lines under every #include ESP_somethings, I decided I’d download the ESP-IDF and create a link in the includePath variable of c_cpp_properties.json. So when I’m coding in VSCode, I don’t have issues as my project refers to the most recent libraries… but when I compile, platformio refers to a version that is at least 5 months old (this function I want seems to have been added 5 months ago).,… hence my question to you all, what is the best way to solve this issue ? Add a build flag ?
Thank you all for your time,