BLE advertisement example dose not work when building with platfromio

sharonpe
Posts: 1
Joined: Mon Apr 04, 2022 12:09 pm

BLE advertisement example dose not work when building with platfromio

Postby sharonpe » Mon Apr 04, 2022 12:56 pm

[Codebox=cpp file=https://github.com/nkolban/esp32-snippe ... Server.cpp][/Codebox]

I've created an example program for testing BLE advertisement using exactly the source also from Kolban:
https://github.com/nkolban/esp32-snippe ... Server.cpp
with tiny addition of prints to make program progress visible.
When running the single file in Arduino it works perfectly as expected and advertisement is created and function returns.
However, building it with vscode & platformio with the right setup, the program waits forever.
The right setup means correct board & Arduino platform selections which work perfectly for me for lots of other functionalities (BLE sniffing, Wifi sniffing, etc).
Following is the line where the program is waiting forever in (Kolban's library): BLEService.cpp in line # 75 where it waits forever for a semaphore to be released. Again, only build environment changed - one works the other dose not.
Any suggestions ?

Thx
Sharon
Attachments
example.png
example.png (1.37 MiB) Viewed 887 times

Who is online

Users browsing this forum: No registered users and 71 guests