-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WiFi Provisioning with BLE throws runtime error when using pioarduino #125
Comments
Highly unlikely that it works with ArduinoIDE and not with pioarduino. The source code and the static libs are 100% same. Probably different core or settings used. |
I am using same core |
Settings done in ArduinoIDE? Board? Best post a screenshot of |
Please try this wifi provision sketch. In yours the NVS status is unknown.
|
The messages seen are normal in the process. Probably the are not fetched in ArduinoIDE |
When flashed using PlatformIO, it prints QR and runs program but it does not start provisioning over BLE. The error occurs and provisioning app cannot find device if flashed using PlatformIO. Works without error and issues when flashing through Arduino IDE. Can you please try a provisioning app? https://play.google.com/store/apps/details?id=com.espressif.provble |
You are right. Honestly i have no idea where the bug is?! The BLE part is a static precompiled library. The same is used for ArduinoIDE and pioarduino. Since no error in build and linking process happens idk what goes wrong. |
I'm a beginner in C++. I was using JavaScript before, so I don’t have much experience with how C++ works, especially with the compiler and linking process. |
Status: Did overflash the plain firmware at address 0x10000 |
Old issue. espressif/arduino-esp32#8176 |
pending PR to fix espressif/arduino-esp32#11167 |
Just curious, I know both Arduino IDE and pioarduino use exact same core then why do we need to comment (or remove) those lines to make it work on pioarduino while Arduino IDE does not require to remove those lines from core? |
The build engine from pioarduino is different. It seems the weak declaration does not works the same way in the pre process compile run step. It makes for example a difference when the file is included during build. Same code can result to different code when build with different build ways ("formulas"). |
I have more to learn. |
Luckily not an usually bug. That's an weird one. |
I am not sure if this is the correct repo to open this issue.
WiFi Provisioning with BLE does not work and throws runtime errors when using
PlatformIO IDE (platform: pioarduino 53.03.13 | core: v3.1.3)
andESP32 Dev Module (nodemcu-32s)
board.Note
The same code works as expected when using
Arduino IDE (core: v3.1.3)
.The runtime error:
src/main.cpp
platformio.ini
The text was updated successfully, but these errors were encountered: