10-14-2025, 08:52 AM
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:
laveLatency,PhyphoxBLE::timeout);
| ^~~~~~~
exit status 1
/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:
laveLatency,PhyphoxBLE::timeout);| ^~~~~~~
exit status 1

