Page 1 of 1

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

Posted: Wed Mar 12, 2025 6:50 am
by danielkim
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.

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

Posted: Tue Mar 25, 2025 3:03 am
by Sun
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.