Establish BLE connection with phone and nano esp32

Hi Andre

I have been trying to get the above libraries but no success. What library do I have to install to get them!

Regards

John Chugh

@johnchugh they are from the "ESP32 BLE Arduino" library that is bundled with the ESP32 boards platform:

Which board do you have selected from the Tools > Board menu in Arduino IDE?

Hello John, you asked the wrong person. I am still having problem getting it to work. Hope someone else here can give an answer.

I have Arduino UNO R4 WiFi board and that is what I selected in Arduino IDE.

OK, then you should use the "ArduinoBLE" library:

Install that library via the Arduino IDE Library Manager.

Note that this library has a different API from the ESP32-specific "ESP32 BLE Arduino" library used by @andre_alm10 so you won't be able to use the sketch code they shared verbatim. In addition to the reference I linked above, a collection of example sketches are provided with the "ArduinoBLE" library. You will find them listed under the File > Examples > ArduinoBLE menu in Arduino IDE. You can study them to learn how to use the library.