Bluetooth Connected TOF Sensor

Dependencies:   BLE_API X_NUCLEO_6180XA1 X_NUCLEO_IDB0XA1 mbed

Fork of BLE_HeartRate_IDB0XA1 by ST

Revision:
30:e324e95c68a9
Parent:
29:cf61a5826426
--- a/main.cpp	Wed Feb 01 22:35:28 2017 +0000
+++ b/main.cpp	Thu Feb 02 17:35:34 2017 +0000
@@ -33,7 +33,7 @@
       }
    }
 
-   void services(O&o)
+   void services(Blob &o)
    {
       enroll(o,detection);             // enroll detection service
       enroll(o,debug);                 // enroll debug service
@@ -52,7 +52,7 @@
    
    static void cbRise(void)
    {
-      O o;                             // declare a blob (BLE OBject)
+      Blob o;                          // declare a blob (BLE OBject)
       Bool value = 0;  
 
       if (o.hasInitialized())
@@ -65,7 +65,7 @@
 
    static void cbFall(void)
    {
-      O o;                             // declare a blob (BLE OBject)
+      Blob o;                          // declare a blob (BLE OBject)
       Bool value = 1;  
 
       if (o.hasInitialized())
@@ -110,7 +110,7 @@
       onDisconnect(o,cbDisconnect);    // setup disconnection callback
    
       device(o,"S16#2.0 Blue TOF");
-      name(o,"TOF HR");      
+      name(o,"Blue TOF");      
          
       advertise(o,"C:ng",100);         // start advertising @ 100 msec interval
       blink.advertise();               // 'advertise' blink sequence