Include Extended Advertising Functionality of NimBLE

abulafi
Posts: 4
Joined: Tue Dec 25, 2018 11:20 am

Include Extended Advertising Functionality of NimBLE

Postby abulafi » Wed Dec 18, 2019 12:00 pm

In the source code of NimBLE, there is a set of extended functionality for advertisement which is controlled by the MYNEWT_VAL_BLE_EXT_ADV preprocessor flag (including 'ble_gap_ext_adv_start()' and 'ble_gap_ext_adv_configure()' functions). However, this flag is turned off by default and there is no option in menuconfig to enable it.

I tried multiple ways to set this flag including adding the following line to my project's CMakeLists.txt:

Code: Select all

target_compile_options(${COMPONENT_LIB} PUBLIC "-DMYNEWT_VAL_BLE_EXT_ADV=1")
But it didn't work.

The only way which worked is by including the above line in NimBLE components' CMakeLists.txt (bt). But this is not a good solution since I don't want to modify the IDF files.

Appreciate any help.

cristovao.trevisan
Posts: 3
Joined: Mon Mar 16, 2020 11:33 am

Re: Include Extended Advertising Functionality of NimBLE

Postby cristovao.trevisan » Mon Mar 16, 2020 11:37 am

It's not possible due to hardware limitations. You can find the following claim in the espressif website (https://www.espressif.com/en/news/BLE_5.0_Certification):
Due to hardware limitations, ESP32 does not support such functions of Bluetooth LE 5.0 as 2M PHY, LE Long Range, and ADV Extensions.

Another reference here: https://github.com/espressif/esp-idf/issues/1516

Who is online

Users browsing this forum: Gaston1980 and 218 guests