Closed vorlovsky closed 3 years ago
Hi @vorlovsky ! The example you mentioned is supposed to work with Arduino core from RedBear. This platform only supports the Arduino nRF5 core https://github.com/sandeepmistry/arduino-nRF5
@valeros There is no _BLEAPI.h in sandeepmistry/arduino-nRF5. Well, do you mean I need to use Arduino core from RedBearLab instead of the one provided by default for the nordicnrf51
platform? Is it possible to specify it somehow in platformio.ini
? I see it is possible for STM32 (through board_build.core
option), but what about nRF5?
Unfortunately, there is no support for the Arduino core from RedBearLab at the moment.
Thanks.
I've imported BLE_CentralTest example from Arduino and tried to build it for nRF51822 with PlatformIO, but got stuck on "BLE_API.h: No such file or directory" error. I've tried to select Platformio or Arduino as a library manager upon project import, but no luck. Also. there is no such error if to build the same sketch using Arduino IDE.
How can this dependencies be fixed in PlatformIO?
Build task output is the following: