Adafruit Bluefruit with KL25Z sending MMA8451Q acceleration data over BLE UART to Nordic oder Adafruit app

Dependencies:   BLE_nRF8001 MMA8451Q mbed

Fork of BLE_KL25_nRF8001 by Ian Kilburn

Revision:
1:b394935d1db1
Parent:
0:3e21be32c98b
Child:
2:e6d7390d4429
--- a/main.cpp	Thu Mar 09 16:56:23 2017 +0000
+++ b/main.cpp	Thu Mar 09 22:14:23 2017 +0000
@@ -36,13 +36,14 @@
 SPI spi(PTD2, PTD3, PTD1);    // MOSI , MISO , SCLK  
 DigitalInOut BLE_RDY(PTD5);  // 
 DigitalInOut BLE_REQ(PTD0);   // 
+DigitalInOut BLE_RESET(PTA13); 
 
 unsigned char txbuf[16] = {0};
 unsigned char txlen = 0;
 
 /*----- BLE Utility -------------------------------------------------------------------------*/
 // create peripheral instance, see pinouts above
-BLEPeripheral            blePeripheral        = BLEPeripheral(&BLE_REQ, &BLE_RDY, NULL);
+BLEPeripheral            blePeripheral        = BLEPeripheral(&BLE_REQ, &BLE_RDY, &BLE_RESET);
 
 // create service
 BLEService               uartService          = BLEService("713d0000503e4c75ba943148f18d941e");