Issue compiling BLE GATT example
Posted: Sun Aug 25, 2024 1:04 pm
I'm not really sure what's happening here, but I saw other old discussions in the forum from people with the same issues.
I can normally run, build, flash, and use the GATT server BLE example. No problems at all.
But when I try to use the very same file in my other ESP-IDF project, I get errors like
Things that I've tried:
What can be the reason for this?
Here's some bigger chunk of the logs:
I can normally run, build, flash, and use the GATT server BLE example. No problems at all.
But when I try to use the very same file in my other ESP-IDF project, I get errors like
- error: jump to case label
- error: enumeration value 'ESP_GATTS_CONF_EVT' not handled in switch
- Change the extension from .c to .cpp
- Have this code inside my project
- Moved this code to a separate component
What can be the reason for this?
Here's some bigger chunk of the logs:
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:340:10: error: jump to case label
- 340 | case ESP_GATTS_READ_EVT: {
- | ^~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:354:10: error: jump to case label
- 354 | case ESP_GATTS_WRITE_EVT: {
- | ^~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:398:10: error: jump to case label
- 398 | case ESP_GATTS_EXEC_WRITE_EVT:
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:403:10: error: jump to case label
- 403 | case ESP_GATTS_MTU_EVT:
- | ^~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:406:10: error: jump to case label
- 406 | case ESP_GATTS_UNREG_EVT:
- | ^~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:408:10: error: jump to case label
- 408 | case ESP_GATTS_CREATE_EVT:
- | ^~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:424:10: error: jump to case label
- 424 | case ESP_GATTS_ADD_INCL_SRVC_EVT:
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:426:10: error: jump to case label
- 426 | case ESP_GATTS_ADD_CHAR_EVT: {
- | ^~~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:451:10: error: jump to case label
- 451 | case ESP_GATTS_ADD_CHAR_DESCR_EVT:
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:456:10: error: jump to case label
- 456 | case ESP_GATTS_DELETE_EVT:
- | ^~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:458:10: error: jump to case label
- 458 | case ESP_GATTS_START_EVT:
- | ^~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:462:10: error: jump to case label
- 462 | case ESP_GATTS_STOP_EVT:
- | ^~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:464:10: error: jump to case label
- 464 | case ESP_GATTS_CONNECT_EVT: {
- | ^~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:465:54: warning: missing initializer for member 'esp_ble_conn_update_params_t::min_int' [-Wmissing-field-initializers]
- 465 | esp_ble_conn_update_params_t conn_params = {0};
- | ^
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:465:54: warning: missing initializer for member 'esp_ble_conn_update_params_t::max_int' [-Wmissing-field-initializers]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:465:54: warning: missing initializer for member 'esp_ble_conn_update_params_t::latency' [-Wmissing-field-initializers]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:465:54: warning: missing initializer for member 'esp_ble_conn_update_params_t::timeout' [-Wmissing-field-initializers]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:481:10: error: jump to case label
- 481 | case ESP_GATTS_DISCONNECT_EVT:
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:485:10: error: jump to case label
- 485 | case ESP_GATTS_CONF_EVT:
- | ^~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:491:10: error: jump to case label
- 491 | case ESP_GATTS_OPEN_EVT:
- | ^~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:492:10: error: jump to case label
- 492 | case ESP_GATTS_CANCEL_OPEN_EVT:
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:493:10: error: jump to case label
- 493 | case ESP_GATTS_CLOSE_EVT:
- | ^~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:494:10: error: jump to case label
- 494 | case ESP_GATTS_LISTEN_EVT:
- | ^~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:495:10: error: jump to case label
- 495 | case ESP_GATTS_CONGEST_EVT:
- | ^~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:496:5: error: jump to case label
- 496 | default:
- | ^~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:416:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 416 | esp_err_t add_char_ret = esp_ble_gatts_add_char(gl_profile_tab[PROFILE_A_APP_ID].service_handle, &gl_profile_tab[PROFILE_A_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:325:19: note: crosses initialization of 'esp_err_t ret'
- 325 | esp_err_t ret = esp_ble_gap_config_adv_data(&adv_data);
- | ^~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:308:19: note: crosses initialization of 'esp_err_t set_dev_name_ret'
- 308 | esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name(TEST_DEVICE_NAME);
- | ^~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_READ_EVT' not handled in switch [-Werror=switch]
- 300 | switch (event) {
- | ^
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_WRITE_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_EXEC_WRITE_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_MTU_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_CONF_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_UNREG_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_CREATE_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_ADD_INCL_SRVC_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_ADD_CHAR_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_ADD_CHAR_DESCR_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_DELETE_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_START_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_STOP_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_CONNECT_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_DISCONNECT_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_OPEN_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_CANCEL_OPEN_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_CLOSE_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_LISTEN_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_CONGEST_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_RESPONSE_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_CREAT_ATTR_TAB_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_SET_ATTR_VAL_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:300:12: error: enumeration value 'ESP_GATTS_SEND_SERVICE_CHANGE_EVT' not handled in switch [-Werror=switch]
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp: In function 'void gatts_profile_b_event_handler(esp_gatts_cb_event_t, esp_gatt_if_t, esp_ble_gatts_cb_param_t*)':
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:595:10: error: jump to case label
- 595 | case ESP_GATTS_ADD_INCL_SRVC_EVT:
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:587:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 587 | esp_err_t add_char_ret =esp_ble_gatts_add_char( gl_profile_tab[PROFILE_B_APP_ID].service_handle, &gl_profile_tab[PROFILE_B_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:597:10: error: jump to case label
- 597 | case ESP_GATTS_ADD_CHAR_EVT:
- | ^~~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:587:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 587 | esp_err_t add_char_ret =esp_ble_gatts_add_char( gl_profile_tab[PROFILE_B_APP_ID].service_handle, &gl_profile_tab[PROFILE_B_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:608:10: error: jump to case label
- 608 | case ESP_GATTS_ADD_CHAR_DESCR_EVT:
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:587:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 587 | esp_err_t add_char_ret =esp_ble_gatts_add_char( gl_profile_tab[PROFILE_B_APP_ID].service_handle, &gl_profile_tab[PROFILE_B_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:613:10: error: jump to case label
- 613 | case ESP_GATTS_DELETE_EVT:
- | ^~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:587:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 587 | esp_err_t add_char_ret =esp_ble_gatts_add_char( gl_profile_tab[PROFILE_B_APP_ID].service_handle, &gl_profile_tab[PROFILE_B_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:615:10: error: jump to case label
- 615 | case ESP_GATTS_START_EVT:
- | ^~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:587:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 587 | esp_err_t add_char_ret =esp_ble_gatts_add_char( gl_profile_tab[PROFILE_B_APP_ID].service_handle, &gl_profile_tab[PROFILE_B_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:619:10: error: jump to case label
- 619 | case ESP_GATTS_STOP_EVT:
- | ^~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:587:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 587 | esp_err_t add_char_ret =esp_ble_gatts_add_char( gl_profile_tab[PROFILE_B_APP_ID].service_handle, &gl_profile_tab[PROFILE_B_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:621:10: error: jump to case label
- 621 | case ESP_GATTS_CONNECT_EVT:
- | ^~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:587:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 587 | esp_err_t add_char_ret =esp_ble_gatts_add_char( gl_profile_tab[PROFILE_B_APP_ID].service_handle, &gl_profile_tab[PROFILE_B_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:628:10: error: jump to case label
- 628 | case ESP_GATTS_CONF_EVT:
- | ^~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:587:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 587 | esp_err_t add_char_ret =esp_ble_gatts_add_char( gl_profile_tab[PROFILE_B_APP_ID].service_handle, &gl_profile_tab[PROFILE_B_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:634:10: error: jump to case label
- 634 | case ESP_GATTS_DISCONNECT_EVT:
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:587:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 587 | esp_err_t add_char_ret =esp_ble_gatts_add_char( gl_profile_tab[PROFILE_B_APP_ID].service_handle, &gl_profile_tab[PROFILE_B_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:635:10: error: jump to case label
- 635 | case ESP_GATTS_OPEN_EVT:
- | ^~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:587:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 587 | esp_err_t add_char_ret =esp_ble_gatts_add_char( gl_profile_tab[PROFILE_B_APP_ID].service_handle, &gl_profile_tab[PROFILE_B_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:636:10: error: jump to case label
- 636 | case ESP_GATTS_CANCEL_OPEN_EVT:
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:587:19: note: crosses initialization of 'esp_err_t add_char_ret'
- 587 | esp_err_t add_char_ret =esp_ble_gatts_add_char( gl_profile_tab[PROFILE_B_APP_ID].service_handle, &gl_profile_tab[PROFILE_B_APP_ID].char_uuid,
- | ^~~~~~~~~~~~
- /Users/myusername/workspace/myprojectname/components/ble/ble.cpp:637:10: error: jump to case label
- 637 | case ESP_GATTS_CLOSE_EVT:
- | ^~~~~~~~~~~~~~~~~~~