The current platformIO uses the mbed framework like mbed web IDE. The Arduino version is not supported and may not able to use those Arduino libraries. Also, please make sure it can support these Arduino libraries for nrf5x:
Arduino nrf5BLEPeripheral
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41887654-support-redbearlab-ble-nano-with-arduino?utm_campaign=plugin&utm_content=tracker%2F38217987&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38217987&utm_medium=issues&utm_source=github).
The current platformIO uses the mbed framework like mbed web IDE. The Arduino version is not supported and may not able to use those Arduino libraries. Also, please make sure it can support these Arduino libraries for nrf5x: Arduino nrf5 BLEPeripheral