8000 Build error when adding cpp_utils to esp-idf-template · Issue #446 · nkolban/esp32-snippets · GitHub
[go: up one dir, main page]

Skip to content
Build error when adding cpp_utils to esp-idf-template #446
Closed
@giobauermeister

Description

@giobauermeister

I can build an 'esp-idf-template' project. Working good.
Then, inside 'esp-idf-template' folder, I create 'components' folder and clone 'cpp_utils' inside components.
I'm following the instruction here: https://github.com/nkolban/esp32-snippets/tree/master/cpp_utils#compiling-the-c-classes

I also enable BLE in menuconfig.

Then, when I try to 'make all' I get the following error:

CXX build/cpp_utils/BLEDescriptor.o
/home/projects/workspace-esp32/esp-idf-template/components/cpp_utils/./BLEDescriptor.cpp: In member function 'void BLEDescriptor::handleGATTServerEvent(esp_gatts_cb_event_t, esp_gatt_if_t, esp_ble_gatts_cb_param_t*)':
/home/projects/workspace-esp32/esp-idf-template/components/cpp_utils/./BLEDescriptor.cpp:158:53: error: 'struct esp_ble_gatts_cb_param_t::gatts_add_char_descr_evt_param' has no member named 'char_uuid'
      m_bleUUID.equals(BLEUUID(param->add_char_descr.char_uuid)) &&
                                                     ^
/home/projects/workspace-esp32/esp-idf/make/component_wrapper.mk:273: recipe for target 'BLEDescriptor.o' failed
make[1]: *** [BLEDescriptor.o] Error 1
/home/projects/workspace-esp32/esp-idf/make/project.mk:450: recipe for target 'component-cpp_utils-build' failed
make: *** [component-cpp_utils-build] Error 2

Any help would be appreciated. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0