You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to do the "make" after setting my bluetooth option in "make menuconfig" but I'm getting the following error:
CC build/bt_speaker/bt_speaker.o
/Users/joaosacramento/esp/esp-idf/ESP32_MP3_Decoder/components/bt_speaker/bt_speaker.c: In function 'bt_av_hdl_stack_evt':
/Users/joaosacramento/esp/esp-idf/ESP32_MP3_Decoder/components/bt_speaker/bt_speaker.c:101:34: error: 'ESP_BT_SCAN_MODE_CONNECTABLE_DISCOVERABLE' undeclared (first use in this function)
esp_bt_gap_set_scan_mode(ESP_BT_SCAN_MODE_CONNECTABLE_DISCOVERABLE);
^
/Users/joaosacramento/esp/esp-idf/ESP32_MP3_Decoder/components/bt_speaker/bt_speaker.c:101:34: note: each undeclared identifier is reported only once for each function it appears in
/Users/joaosacramento/esp/esp-idf/ESP32_MP3_Decoder/components/bt_speaker/bt_speaker.c:101:9: error: too few arguments to function 'esp_bt_gap_set_scan_mode'
esp_bt_gap_set_scan_mode(ESP_BT_SCAN_MODE_CONNECTABLE_DISCOVERABLE);
^
In file included from /Users/joaosacramento/esp/esp-idf/ESP32_MP3_Decoder/components/bt_speaker/bt_speaker.c:31:0:
/Users/joaosacramento/esp/esp-idf/components/bt/bluedroid/api/include/api/esp_gap_bt_api.h:367:11: note: declared here
esp_err_t esp_bt_gap_set_scan_mode(esp_bt_connection_mode_t c_mode, esp_bt_discovery_mode_t d_mode);
Does someone knows hoe to solve this?
Thank you
The text was updated successfully, but these errors were encountered:
This could happen if you use newer ESP IDF (e.g. current git). API for BT is somehow changed and is not compatible.
I solved this problem by switching back to release 3.1.4 of ESP IDF (https://github.com/espressif/esp-idf/releases). Than all builds fine.
Hello!
I'm trying to do the "make" after setting my bluetooth option in "make menuconfig" but I'm getting the following error:
Does someone knows hoe to solve this?
Thank you
The text was updated successfully, but these errors were encountered: