latest IDF docker image
in menuconfig I enabled
Bluetooth/host bluedroid/
Bluetooth/controller
Bluetooth/bluedroidoptions/ Enable BLE 4.2 features
CMake txt:
idf_component_register(SRCS “ble_wrp.c”
REQUIRES driver
PRIV_REQUIRES nvs_flash bt
INCLUDE_DIRS “include”)
Code: Select all
rm -R build
idf.py build
Code: Select all
/project/main/ble_wrp.c:20:8: error: unknown type name 'esp_ble_scan_params_t'
20 | static esp_ble_scan_params_t ble_scan_params = {
| ^~~~~~~~~~~~~~~~~~~~~
#if CONFIG_BT_BLE_42_FEATURES_SUPPORTED==0
#error "BLE 42 features are not enabled in menuconfig"
#endif