BLE Nano Code.Tested with Integrated mDot code

Dependencies:   BLE_API mbed nRF51822

Fork of eco_Labs_ble_Client by Happiest

Revision:
34:d146cdbffd91
Parent:
33:17b8c186eb07
--- a/spi_slave.cpp	Thu Dec 15 06:26:45 2016 +0000
+++ b/spi_slave.cpp	Fri Dec 16 10:20:16 2016 +0000
@@ -32,7 +32,7 @@
 /* Extern Variable/functions                                                  */
 /******************************************************************************/
 extern bool toggle_led_flag;
-extern void spi_rx_Data_Callback(uint8_t *rx_data, uint8_t len);
+extern void spi_rx_Data_Callback(uint8_t *rx_data);
  
 /******************************************************************************/
 /* Static Variables                                                           */
@@ -98,7 +98,7 @@
             
             if ((byte_cnt >= 4) && (rx_buf[byte_cnt] == BLE_EOT_CMD)) {                
                 /* Check for End of Frame to make sure complete packet has been received */
-                spi_data_ready_cb(rx_buf, byte_cnt);
+                spi_data_ready_cb(rx_buf);
                 byte_cnt = 0;
             }
             byte_cnt++;