Have been trying to get ble examples working through platformio on our board but have had no luck. The moment I add bluefruit.h as a header the build fails with lots of errors like the following
C:\Users\Jonathan.platformio\packages\framework-arduinoadafruitnrf52\libraries\Bluefruit52Lib\src\utility\bonding.cpp:221:10: error: ‘file’ was not declared in this scope
All related to bonding.cpp
Even with a very minimal setup this occurs. Here is .ini contents
platform = nordicnrf52
board = adafruit_itsybitsy_nrf52840
framework = arduino
And here is the most basic code that fails at compiling.
This code does compile in the arduino ide so I’m not sure what I’m doing wrong, if there is a missing setting in the .ini, or if this is a platformio bug.