Smartphone-Companions / ESP32-ANCS-Notifications

Easy-to-use Arduino library for interfacing an ESP 32 with Bluetooth LE ANCS mobile device notifications.
GNU General Public License v3.0
151 stars 24 forks source link

FreeRTOS.h: No such file or directory #28

Closed petoor closed 2 years ago

petoor commented 2 years ago

Running the example i get the following error : FreeRTOS.h: No such file or directory

I can see it is called in ancs_ble_client.h

I am using the arduino ide

Any idea how to fix this? `

Erchil66 commented 2 years ago

Same also looking for solution on this

petoor commented 2 years ago

@Erchil66 I ended up using : https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/bluedroid/classic_bt/hfp_hf Works perfect for my case.

ManuEcheveste commented 5 months ago

Hi @petoor, would it be a bother if you could please explain to me how you implemented your fix? As I wasn't able to figure it out.

petoor commented 5 months ago

@ManuEcheveste have you gotten the example to run?

ManuEcheveste commented 5 months ago

@petoor Unfortunately, no. I get the same error as you on the beginning. `In file included from C:\Users\ManuEcheveste\Documents\Arduino\libraries\ESP32_BLE_ANCS_Notifications\src\ancs_ble_client.cpp:4: C:\Users\ManuEcheveste\Documents\Arduino\libraries\ESP32_BLE_ANCS_Notifications\src\ancs_ble_client.h:6:10: fatal error: FreeRTOS.h: No such file or directory

include "FreeRTOS.h" // For asynchronous tasks

      ^~~~~~~~~~~~

compilation terminated. exit status 1 Error compiling for board ESP32 Dev Module.`

Tried to look in the link that you shared, but got no idea in what to do for some time now.

petoor commented 5 months ago

Yes I never got this repository to work. Please know that the example I'm linking to is a different repo.

ManuEcheveste commented 5 months ago

Got it. Thank you so much for your time! Hope this library will be updated, as it would be a dream to work with.

petoor commented 5 months ago

No problem.

Yes, this repo would indeed be lovely to work with

foxt commented 4 months ago

I resolved the issue by downloading the latest version of the library from GitHub (uninstall the version from the library manager, download the git repo to your Documents/Arduino/Libraries folder).

However, even then it my iPhone wouldn't see it as a eligible to recieve notifications.

I used https://github.com/gabrielchristino/ANCS instead.