How to set up ESP32 SDK/ toolchain

Hi Max,

Thank you for your help. I am able to compile and run successfully.

I did something differently b/c this menu config looks new and complicated to me. So, I just copied the sdkconfig.defaults file. I see how “pio run -t menuconfig” work.

  1. Copy the ble_ibeacon example from C:\Users\mikel.platformio\packages\framework-espidf\examples\bluetooth\bluedroid\ble\ble_ibeacon.

sdkconfig.defaults (for the example) is different.

# Override some defaults so BT stack is enabled
# and WiFi disabled by default in this example
CONFIG_BT_ENABLED=y
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n
CONFIG_BTDM_CTRL_MODE_BTDM=n
  1. pio run (Clean build. Now I can see esp_bt.h file)
  2. pio run --target upload
  3. open the serial monitor.
  4. My smartphone detected the beacon.

It seems that I don’t need to make the 3 changes to make the project ESP-IDF v4.0.1 compatible. Please correct me if I am wrong.

Now I want to enable both BLE and WiFi co-existence for my real project. Is this the only option I need to enable? Would you know if there is an example of BLE and WiFi combo example made by Expressif? I can’t find an example. Hope you can help me on this.