espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.7k stars 7.3k forks source link

Bluetooth connection without using an app (IDFGH-11013) #12197

Open Talha-Babar opened 1 year ago

Talha-Babar commented 1 year ago

Is your feature request related to a problem?

I want to connect my esp32 with cell phone without using an app. I don't want to exchange any data, i just only want to connect it. Is this possible?

Describe the solution you'd like.

If yes, kindly elaborate how can i achieve this task?

Describe alternatives you've considered.

No response

Additional context.

No response

esp-zhp commented 1 year ago

@Talha-Babar Hi,ESP32 supports classic Bluetooth and low-energy Bluetooth. Do you want to use classic Bluetooth or low-energy Bluetooth? If you are using BLE, you can refer to esp-idf/examples/bluetooth/bluedroid/ble/gatt_security_server. With an Android phone, you can directly discover the device and initiate a connection.