I tried uploading the ESP-MESH Internal Communication Example through PlatformIO but I couldn't compile it due to several undefined variable errors.
Fig. 28 - I switched the framework from Arduino to espidf in platform.ini but I received errors when compiling.
After a few tries I realized that a few variables weren't assigned because they are supposed to be defined in the project configuration menu when using the official ESP-IDF toolkit. I followed the getting started guide and tried uploading it the old-fashioned way.
Fig. 29 - Project configuration menu
However, I would like to continue using PlatformIO due to its "Peek Definition" feature, so I instead define all of these variables at the top of the file:
Fig. 30 - Manual defining of the config variables without configuration menu.