Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with make #67

Open
JoaoMSacramento opened this issue Mar 25, 2019 · 1 comment
Open

Problems with make #67

JoaoMSacramento opened this issue Mar 25, 2019 · 1 comment

Comments

@JoaoMSacramento
Copy link

Hello!

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

@gicho
Copy link

gicho commented May 9, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants