Chapter 4. Software framework
• For the BLE5.0 examples, please refer to ble_50 examples in ESP-IDF.
4.1.65 I have changed the name of the Bluetooth device with
esp_ble_gap_set_device_name() in ESP32-C3. It works for Android devices
and the customized device name can be shown. However, it does not work on IOS
devices. The device name is still the default Bluetooth name. How can I make it
work on Apple devices as well?
• In this case, you need to use raw data to create BLE advertising packets. First, enable the CON-
FIG_SET_RAW_ADV_DATA option in menuconfig (idf.py menuconfig > Example 'GATT
SERVER' Config > Use raw data for advertising packets and scan response
data), and then customize Broadcast packet structure in the gatt server example.
• Please use nRF Connect APP to test. We have tested and it works on the nRF connect APP. This issue is
related to IOS APPs.
4.1.66 I want to use two ESP32 development boards to test the Bluetooth connection. How
can I set the specied key to automatically connect them with gatt_security_client
and gatt_security_server examples?
• In gatt_security_client and gatt_security_server examples, the default key is 123456. For details, please refer
to uint32_t passkey = 123456. You can also set other passwords.
• Since the ESP32 device has no display or input keyboard by default, the example sets the IO capability to No
output No input. For more details, please refer to Gatt Security Server Example Walkthrough.
• To manually input the key, please set esp_ble_io_cap_t iocap in the gatt_security_server example to
ESP_IO_CAP_OUT mode, and then you can use the nRF Connect APP to establish a connection with the
BLE Server.
4.1.67 After setting gatt_security_server to ESP_IO_CAP_OUT mode and setting
gatt_security_client to ESP_IO_CAP_OUT mode, I deliberately set the wrong
passkey. However, the two development boards can still be connected. What is
the reason?
• When the server is set to ESP_IO_CAP_OUT mode, gatt_security_client should be set to ESP_IO_CAP_IN
mode.
• To avoid such a situation, please add the following code into the case ESP_GAP_BLE_PASSKEY_REQ_EVT
event on the gatt_security_client side:
esp_ble_passkey_reply(param->ble_security.ble_req.bd_addr, true, 123457);
4.1.68 Does ESP32-C3/ESP32-C6/ESP32-S3 support Bluetooth AOA/AOD?
• ESP32-C3/ESP32-C6/ESP32-S3 does not support Bluetooth AOA/AOD. Currently, none of Espressif prod-
ucts support Bluetooth AOA/AOD.
Espressif Systems 56
Submit Document Feedback
Release master