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; I Want To Use Two Esp32 Development Boards To Test The Bluetooth Connection. How Can I Set The Specified Key To Automatically Connect Them With Gatt_Security_Client And; Gatt_Security_Server Examples; After Setting Gatt_Security_Server To Esp_Io_Cap_Out Mode And Setting - Espressif Systems ESP Faq

Table of Contents

Advertisement

Chapter 4. Software framework
• For the BLE5.0 examples, please refer to
4.1.65 I
have
esp_ble_gap_set_device_name() in ESP32-C3.
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.
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
• 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 specified key to automatically connect them with gatt_security_client
and gatt_security_server examples?
• In
gatt_security_client
to
uint32_t passkey =
• Since the ESP32 device has no display or input keyboard by default, the example sets the IO capability to
output No
input. For more details, please refer to
• To manually input the key, please set
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
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
ble_50 examples
changed
the
name
Broadcast packet structure
and
gatt_security_server
123456. You can also set other passwords.
esp_ble_io_cap_t iocap
Submit Document Feedback
in ESP-IDF.
of
the
Bluetooth
It works for Android devices
in the
gatt server
example.
examples, the default key is 123456. For details, please refer
Gatt Security Server Example
in the
case ESP_GAP_BLE_PASSKEY_REQ_EVT
56
device
First, enable the CON-
Walkthrough.
gatt_security_server
example to
Release master
with
No

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP and is the answer not in the manual?

This manual is also suitable for:

Esp32Esp8266Esp32-s2Esp32-c3Esp32-s3

Table of Contents