esp32-snippets: Compilation error for all example sketches!
I am getting following error(sic).I downloaded the latest branch. Need help.
In file included from C:\Users\Robo1\Documents\Arduino\libraries\ESP32_BLE_Arduino-master\src/BLEDevice.h:19:0,
from C:\Users\Robo1\Documents\Arduino\libraries\ESP32_BLE_Arduino-master\examples\BLE_uart\BLE_uart.ino:22:
C:\Users\Robo1\Documents\Arduino\libraries\ESP32_BLE_Arduino-master\src/BLEUtils.h:49:49: error: 'esp_gattc_service_elem_t' has not been declared
static std::string gattcServiceElementToString(esp_gattc_service_elem_t *pGATTCServiceElement);
^
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 54 (6 by maintainers)
Hey folks! I had the same issue while compiling with Platformio today. It seems all that is required is to use the staging version of espressif32 platform, as platformio is a little way back in picking up the updated repo. I also had an error about pthread_mutex_t not being defined or something, but that was also taken care of by changing to the staging platform.
How to change to the staging platform? Open your platformio.ini file, and change
platform = espressif32
toplatform = espressif32_stage
If you haven’t used the staging version before, you may have to wait for platformio to download the required files first.Thanks @nkolban for your commitment towards ESP32! Where would we be without your contributions…
Edit: Just switch over to the staging version anyway. It is so further ahead than the other one. You can use @me-no-dev’s ESPAsyncWebServer with it! !
Happy ending! All works now. I have the BLE_uart code running and am connected with a tablet. No idea what to do with it yet but that is a small problem.
Thanks for the help guys.
Works like a charm with Arduino IDE 1.8.5 and https://github.com/espressif/arduino-esp32 (60b8b47).