ESP32 BLE ANCS Notification example do not compile

Hello
Initial status:
Software - Arduino IDE 2.3.3
Hardware - ESP32-Wroom-32 (suspect ESP32-Wroom-DA clone)

In IDE I installed

  • only Espressif ESP32 board
  • only ESP32 BLE ANCS Notification library

Example from mentioned library (ble_connection.ino) does not compile.
What I found out:

  • minimum number of errors is produced with ESP board driver version from 2.0.5 to 2.0.17, now I stick to 2.0.17
  • in library sources in file ancs_ble_client.h had to comment
    //#include "FreeRTOS.h" // For asynchronous tasks
    so that it would find rtos library provided with board driver (by savior Google)

Still there's one error that I need help with

In file included from /home/andrey/Arduino/libraries/ESP32_BLE_ANCS_Notifications/src/ancs_ble_client.cpp:4:
/home/andrey/Arduino/libraries/ESP32_BLE_ANCS_Notifications/src/ancs_ble_client.h:41:2: error: 'xTaskHandle' does not name a type
  xTaskHandle clientTaskHandle;
  ^~~~~~~~~~~
/home/andrey/Arduino/libraries/ESP32_BLE_ANCS_Notifications/src/ancs_ble_client.h:41:2: note: the macro 'xTaskHandle' had not yet been defined
In file included from /home/andrey/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/Arduino.h:33,
                 from /home/andrey/Arduino/libraries/ESP32_BLE_ANCS_Notifications/src/ancs_notification_queue.h:3,
                 from /home/andrey/Arduino/libraries/ESP32_BLE_ANCS_Notifications/src/ancs_ble_client.cpp:5:
/home/andrey/.arduino15/packages/esp32/hardware/esp32/2.0.17/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:1025: note: it was later defined here
     #define xTaskHandle                   TaskHandle_t
 

exit status 1

Compilation error: exit status 1

I suppose that's the result from RTOS upgrade to V8+.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.