This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Problem with ESP32 C3 super mini
#1
Hello everyone, I am using ESP32 C3 super mini to do experiment with phyphox. When I run code on Aduino IDE, I meet following error, please help me (I using phyphoxble 1.2.5)

/Users/vunguyen/Documents/Arduino/libraries/phyphox_BLE/src/phyphoxBLE_ESP32.cpp:107:40: error: 'esp_ble_gatts_cb_param_t' has not been declared
  107 |    void onConnect(BLEServer* pServer, esp_ble_gatts_cb_param_t *param) {
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/vunguyen/Documents/Arduino/libraries/phyphox_BLE/src/phyphoxBLE_ESP32.cpp: In member function 'void MyServerCallbacks::onConnect(BLEServer*, int*)':
/Users/vunguyen/Documents/Arduino/libraries/phyphox_BLE/src/phyphoxBLE_ESP32.cpp:108:40: error: request for member 'connect' in '* param', which is of non-class type 'int'
  108 |      pServer->updateConnParams(param->connect.remote_bda,PhyphoxBLE::minConInterval,PhyphoxBLE::maxConInterval,PhyphoxBLE:ConfusedlaveLatency,PhyphoxBLE::timeout);
      |                                        ^~~~~~~
exit status 1
Reply
#2
I just looked into this and the problem is that Espressif is moving from the Bluedroid BLE stack to NimBLE, which has become the default for some boards since board definitions version 3.3.0. The classic ESP32 is not yet affected, but it will be with version 4.0.0, so we definitely have to adapt our library soon.

Until then, go into the board manager of the Arduino IDE and downgrade the esp32 board definitions to version 3.2.1. That should keep you going until we found some time to fix this.
Reply


Forum Jump: