ESP32 BLE Arduino libraries problem

Hello everyone!

I'm doing a project for university where I need to connect an Arduino Wifi Rev2 and a Raspberry Pi! Since the Arduino Wifi Rev2 is also Bluetooth i decided to connect them using a BLE connection.

To do that I found several tutorials on internet (like this one: Hello Raspberry Pi: Bi-direction BLE communication between Raspberry Pi/Python (with PyQt5 GUI) and ESP32/Arduino Nano RP2040 Connect ) but all of them are working with the ESP32 BLE Arduino libraries, that are not working on Arduino Wifi Rev2. I think that the problem come from using the built-in bluetooth and not the external module because if I'm compiling the file selecting for example the NodeMCU-32S board doesn't give any error, but then i cannot upload it on my board because i'm using the Arduino Wifi Rev2. Does anyone know hot to fix it?

Here the error:
In file included from C:\Users\AppData\Local\Temp.arduinoIDE-unsaved20221116-23760-1qv0xwv.qiog\BLE_uart\BLE_uart.ino:23:0:
c:\Users\Documents\Arduino\libraries\ESP32_BLE_Arduino-master\src/BLEServer.h:10:10: fatal error: sdkconfig.h: No such file or directory
#include "sdkconfig.h"
^~~~~~~~~~~~~
Compilation error: exit status 1

Thanks in advance!

You should use the ArduinoBLE library for the Uno WiFi Rev2.

It is available through the library manager.

Thank you for the response!

But since I'm new in the Arduino's world ArduinoBLE library has only couples of examples that I can't understand. On the internet i can find only tutorials that are using an external module with other libraries that are not working on the arduino uno wifi rev2.

Thank you in advance!

This is a good summary of BLE and a presentation of the ArduinoBLE.h functions.

https://www.arduino.cc/reference/en/libraries/arduinoble/

A google search for ArduinoBLE.h will lead you to many tutorials.
You will also find help on this forum if you put in the work to get started and write some code.
https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.