Topic: A broken example ESP32 Bluetooth LE
I am trying the ESP32 Bluetooth LE sample code according to the instructions. Easy to turn on the LED with a button in the RemoteXY application. After generating the code and compiling it in Arduino IDE (ver.2.3.2) the compilation crashes. All libraries are up to date.
In file included from C:\Users\marek\OneDrive\Dokumenty\Arduino\libraries\ESP32_BLE_Arduino\src/BLEAdvertising.h:15,
from C:\Users\marek\OneDrive\Dokumenty\Arduino\libraries\ESP32_BLE_Arduino\src/BLEServer.h:19,
from C:\Users\marek\OneDrive\Dokumenty\Arduino\libraries\ESP32_BLE_Arduino\src/BLEDevice.h:18,
from X:\Arduino\ESP32\Pokus_1\project\project.ino:28:
C:\Users\marek\OneDrive\Dokumenty\Arduino\libraries\ESP32_BLE_Arduino\src/FreeRTOS.h:61:35: error: 'ringbuf_type_t' has not been declared
61 | Ringbuffer(size_t length, ringbuf_type_t type = RINGBUF_TYPE_NOSPLIT);
| ^~~~~~~~~~~~~~
In file included from C:\Users\marek\OneDrive\Dokumenty\Arduino\libraries\RemoteXY\src/RemoteXY.h:158,
from X:\Arduino\ESP32\Pokus_1\project\project.ino:34:
C:\Users\marek\OneDrive\Dokumenty\Arduino\libraries\RemoteXY\src/RemoteXYStream_BLEDevice.h: In member function 'virtual void CRemoteXYStream_BLEDevice::onWrite(BLECharacteristic*)':
C:\Users\marek\OneDrive\Dokumenty\Arduino\libraries\RemoteXY\src/RemoteXYStream_BLEDevice.h:111:47: error: conversion from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to non-scalar type 'String' requested
111 | String rxValue = pCharacteristic->getValue();
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~
Multiple libraries were found for "BLEDevice.h"
Used: C:\Users\marek\OneDrive\Dokumenty\Arduino\libraries\ESP32_BLE_Arduino
Not used: C:\Users\marek\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\libraries\BLE
exit status 1
Compilation error: exit status 1
Could someone help me?