How to compile BLE GAP API of bluedroid on at_custom_cmd.c?

danielkim
Posts: 4
Joined: Mon Nov 04, 2024 6:11 am

How to compile BLE GAP API of bluedroid on at_custom_cmd.c?

Postby danielkim » Wed Mar 12, 2025 6:50 am

Hello,

May I ask a favor of you?

I'd like to execute esp_ble_gap_set_device_name() from User-Defined AT(at_custom_cmd.c).

But it found that esp_ble_gap_set_device_name(), esp_gap_ble_api.h and esp_bt_device.h exists on esp-at\esp-idf\components\bt\host\bluedroid folder.

Even though bluedroid is enabled via menuconfig, it still has failed to build at_custom_cmd.c code.

Could you please let me know if AT firmware(libesp32c6_at_core_silence.a) support bluedroid API?

If not, is there any workaround to execute esp_ble_gap_set_device_name() function on at_custom_cmd.c code???

Thanks in advance.
Attachments
Build error_blueroid_enabled.png
Build error_blueroid_enabled.png (91.9 KiB) Viewed 1484 times
menuconfig.png
menuconfig.png (76.79 KiB) Viewed 1484 times
at_custom_cmd.c.png
at_custom_cmd.c.png (21.73 KiB) Viewed 1484 times

Sun
Espressif staff
Espressif staff
Posts: 336
Joined: Thu Dec 30, 2021 9:52 am

Re: How to compile BLE GAP API of bluedroid on at_custom_cmd.c?

Postby Sun » Tue Mar 25, 2025 3:03 am

ESP32/ESP32C3 AT is based on bluedroid, and ESP32C2/ESP32C6 AT is based on nimble protocol stack. If you need to develop new BLE AT commands based on ESP32C6 AT, please call nimble API.

Who is online

Users browsing this forum: No registered users and 1 guest