Hi all
I am a new member and relatively new to using the ESP32
Have a HealthyPi4 Board which uses the ESP32 WROO DA
But I cant get the original sketch to compile - it appears to fail at the BLE libraries
I note there is a lot of development going on with BLE - presumably this has broken the original code which is several years old now
My questions
(1) Is anyone currently developing the HealthyPi?
(2) Does anyone have a solution which may involve legacy BLE libraries?
Thanks in advance
R
Error messages
Arduino: 1.8.19 (Linux), Board: "ESP32 Dev Module, Disabled, Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None"
In file included from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEServer.h:19,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEDevice.h:18,
from /home/oliver/Desktop/HealthyPi/protocentral_healthypi4_arduino-0.3.2/examples/Healthypiv4_default_BLE_and_Pi/Healthypiv4_default_BLE_and_Pi.ino:33:
/home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEAdvertising.h:71:2: error: 'esp_ble_adv_data_t' does not name a type; did you mean 'esp_ble_adv_data_type'?
esp_ble_adv_data_t m_advData;
^~~~~~~~~~~~~~~~~~
esp_ble_adv_data_type
/home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEAdvertising.h:72:2: error: 'esp_ble_adv_data_t' does not name a type; did you mean 'esp_ble_adv_data_type'?
esp_ble_adv_data_t m_scanRespData; // Used for configuration of scan response data when m_scanResp is true
^~~~~~~~~~~~~~~~~~
esp_ble_adv_data_type
/home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEAdvertising.h:73:2: error: 'esp_ble_adv_params_t' does not name a type; did you mean 'esp_ble_sm_param_t'?
esp_ble_adv_params_t m_advParams;
^~~~~~~~~~~~~~~~~~~~
esp_ble_sm_param_t
In file included from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEDevice.h:18,
from /home/oliver/Desktop/HealthyPi/protocentral_healthypi4_arduino-0.3.2/examples/Healthypiv4_default_BLE_and_Pi/Healthypiv4_default_BLE_and_Pi.ino:33:
/home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEServer.h:94:2: error: 'esp_ble_adv_data_t' does not name a type; did you mean 'esp_ble_adv_data_type'?
esp_ble_adv_data_t m_adv_data;
^~~~~~~~~~~~~~~~~~
esp_ble_adv_data_type
In file included from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEAdvertisedDevice.h:17,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEClient.h:22,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEDevice.h:19,
from /home/oliver/Desktop/HealthyPi/protocentral_healthypi4_arduino-0.3.2/examples/Healthypiv4_default_BLE_and_Pi/Healthypiv4_default_BLE_and_Pi.ino:33:
/home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEScan.h:33:2: error: 'esp_ble_gap_phy_t' does not name a type; did you mean 'esp_ble_key_t'?
esp_ble_gap_phy_t adv_phy; /*!< periodic advertising phy type */
^~~~~~~~~~~~~~~~~
esp_ble_key_t
/home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEScan.h:98:2: error: 'esp_ble_scan_params_t' does not name a type; did you mean 'esp_ble_sm_param_t'?
esp_ble_scan_params_t m_scan_params;
^~~~~~~~~~~~~~~~~~~~~
esp_ble_sm_param_t
/home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEScan.h:117:24: error: 'esp_ble_gap_periodic_adv_report_t' has not been declared
virtual void onReport(esp_ble_gap_periodic_adv_report_t params) {}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEDevice.h:20,
from /home/oliver/Desktop/HealthyPi/protocentral_healthypi4_arduino-0.3.2/examples/Healthypiv4_default_BLE_and_Pi/Healthypiv4_default_BLE_and_Pi.ino:33:
/home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEUtils.h:59:21: error: expected ';' at end of member declaration
static const char* searchEventTypeToString(esp_gap_search_evt_t searchEvt);
^~~~~~~~~~~~~~~~~~~~~~~
;
/home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/BLE/src/BLEUtils.h:59:65: error: expected ')' before 'searchEvt'
static const char* searchEventTypeToString(esp_gap_search_evt_t searchEvt);
~ ^~~~~~~~~~
)
/home/oliver/Desktop/HealthyPi/protocentral_healthypi4_arduino-0.3.2/examples/Healthypiv4_default_BLE_and_Pi/Healthypiv4_default_BLE_and_Pi.ino: In function 'float pnn_ff(unsigned int*)':
Healthypiv4_default_BLE_and_Pi:880:43: error: call of overloaded 'abs(unsigned int)' is ambiguous
pnn50 = abs(array[i + 1] - array);
^
In file included from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/cstdlib:75,
from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/stdlib.h:36,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32/include/newlib/platform_include/assert.h:21,
from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/sys/reent.h:503,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32/include/newlib/platform_include/sys/reent.h:17,
from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/stdio.h:60,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/cores/esp32/Arduino.h:27,
from sketch/Healthypiv4_default_BLE_and_Pi.ino.cpp:1:
/home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/stdlib.h:74:5: note: candidate: 'int abs(int)'
int abs (int);
^~~
In file included from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/cstdlib:77,
from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/stdlib.h:36,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32/include/newlib/platform_include/assert.h:21,
from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/sys/reent.h:503,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32/include/newlib/platform_include/sys/reent.h:17,
from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/stdio.h:60,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/cores/esp32/Arduino.h:27,
from sketch/Healthypiv4_default_BLE_and_Pi.ino.cpp:1:
/home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/bits/std_abs.h:78:3: note: candidate: 'constexpr long double std::abs(long double)'
abs(long double __x)
^~~
/home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/bits/std_abs.h:74:3: note: candidate: 'constexpr float std::abs(float)'
abs(float __x)
^~~
/home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/bits/std_abs.h:70:3: note: candidate: 'constexpr double std::abs(double)'
abs(double __x)
^~~
/home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
abs(long __i) { return __builtin_labs(__i); }
^~~
/home/oliver/Desktop/HealthyPi/protocentral_healthypi4_arduino-0.3.2/examples/Healthypiv4_default_BLE_and_Pi/Healthypiv4_default_BLE_and_Pi.ino: In function 'float rmssd_ff(unsigned int*)':
Healthypiv4_default_BLE_and_Pi:899:43: error: call of overloaded 'abs(unsigned int)' is ambiguous
pnn50 = abs(array[i + 1] - array);
^
In file included from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/cstdlib:75,
from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/stdlib.h:36,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32/include/newlib/platform_include/assert.h:21,
from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/sys/reent.h:503,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32/include/newlib/platform_include/sys/reent.h:17,
from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/stdio.h:60,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/cores/esp32/Arduino.h:27,
from sketch/Healthypiv4_default_BLE_and_Pi.ino.cpp:1:
/home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/stdlib.h:74:5: note: candidate: 'int abs(int)'
int abs (int);
^~~
In file included from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/cstdlib:77,
from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/stdlib.h:36,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32/include/newlib/platform_include/assert.h:21,
from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/sys/reent.h:503,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32/include/newlib/platform_include/sys/reent.h:17,
from /home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/stdio.h:60,
from /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/cores/esp32/Arduino.h:27,
from sketch/Healthypiv4_default_BLE_and_Pi.ino.cpp:1:
/home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/bits/std_abs.h:78:3: note: candidate: 'constexpr long double std::abs(long double)'
abs(long double __x)
^~~
/home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/bits/std_abs.h:74:3: note: candidate: 'constexpr float std::abs(float)'
abs(float __x)
^~~
/home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/bits/std_abs.h:70:3: note: candidate: 'constexpr double std::abs(double)'
abs(double __x)
^~~
/home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/home/oliver/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
abs(long __i) { return __builtin_labs(__i); }
^~~
Multiple libraries were found for "WiFi.h"
Used: /home/oliver/.arduino15/packages/esp32/hardware/esp32/2.0.4/libraries/WiFi
Not used: /app/Arduino/libraries/WiFi
exit status 1
call of overloaded 'abs(unsigned int)' is ambiguous
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
HealthyPi4 BLE compiling problems
-
- Posts: 1
- Joined: Fri Sep 02, 2022 1:41 am
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 55 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.