BLE Feedbakc Service

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_HeartRate by Bluetooth Low Energy

Revision:
65:5a78321ef3d3
Parent:
64:4ced7a1586b0
--- a/ble_feedback.cpp	Fri Jun 12 08:30:07 2015 +0000
+++ b/ble_feedback.cpp	Fri Jun 12 09:07:19 2015 +0000
@@ -21,6 +21,10 @@
         setupService();                
     }
     
+bool FeedbackService::isConnected(){
+    return ble.getGapState().connected;
+}
+    
 void FeedbackService::setupService(){
         printf("setting up");
         static bool serviceAdded = false; /* We should only ever need to add the heart rate service once. */