Close

08/19/19 - Official ESP-IDF Mesh example into PlatformIO

A project log for My attempt at an ESP-NOW Mesh

Designing a custom mesh for sensors, home automation and remote controlling and using Espressif's ESP-NOW

David M.David M. 08/19/2019 at 23:200 Comments

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.

Discussions