I’ve been getting an error while trying to use wifi provision via ble on esp32. The error only appears when using esp32 on platformio. When using the same code with a esp32-c3 or esp32-s3 everything works fine. Also, uploading the same code via Arduino IDE doesn’t give me the error…
Any idea what would be causing this error only when using esp32 via platformio?
Unfortunately, I can confirm this error. I have tried the example WiFiProv using the bluetooth provisioning method in the Arduino IDE with Arduino-ESP32 2.0.6 and 2.0.7 and it works flawlessly. For some reason, that I haven’t figured out yet the same sketch (copied into a new PlatformIO project) build fine in platform IO, but I get the error mentioned above during runtime.
Alternative, the latest bleeding edge version of the platform does use the latest Arduino-ESP32 2.11.0 version, so the sketch version that you probably copy-pasted straight from the master branch has a better chance of working. You can see how to use the upstream version per documentation.
Of course, stable versions should be preferred.
And btw, I’m expecting a new stable platform-espressif32 version soon due to the adding of the “Arduino Nano ESP32” board (and closing of related issues).