Dependencies:   BLE_API mbed nRF51822

Fork of eco_Labs_ble_Client by Happiest

Revision:
22:7980e0aa7938
Parent:
17:3fb1aafa4436
Child:
25:96044c55f844
--- a/ble_uart.cpp	Wed Oct 19 08:07:16 2016 +0000
+++ b/ble_uart.cpp	Fri Oct 21 04:19:39 2016 +0000
@@ -35,7 +35,7 @@
  extern void enable_interrupt_line(bool status,uint8_t pin_num );
 void spi_slave_tx_data(uint8_t *tx_buf, uint8_t len);
 bool isDeviceConnected = false;
- 
+bool init_success =false;
  
 #define DEBUG(STR) { if (uart) uart->write(STR, strlen(STR)); }
  
@@ -164,6 +164,8 @@
                               
     ble.setAdvertisingInterval(160); /* 100ms; in multiples of 0.625ms. */
     ble.startAdvertising();
+    
+    init_success=true;
 }
  
 /**