This program demonstrate how to apply BLE_nRF8001 library on mbed platform working with RedBearLab BLE Shield v2.1 or above.
The application works with the BLEController iOS/Android App. Type something from the Terminal to send to the BLEController App or vice verse. Characteristics received from App will print on Terminal. You have to change the belowing constructs manually corresponding to the platform you are using.
SPI spi(PTD2, PTD3, PTD1);