SunTracker_BLE_Remote

Dependencies:   BLE_API X_NUCLEO_IDB0XA1 X_NUCLEO_IKS01A1 mbed

Fork of SunTracker_BLE_Remote by ST Expansion SW Team

This application is the BLE Remote Control for the SunTracker demo application that you can find here.
Please refer to that page for further information.

Revision:
10:d00d09bc31d6
Parent:
9:d530044d91b9
--- a/main.cpp	Tue May 10 13:36:52 2016 +0000
+++ b/main.cpp	Thu May 12 09:27:25 2016 +0000
@@ -258,7 +258,7 @@
     // Read SERVER --> CLIENT
     
     // From SERVER it receives a sensor in this format: TimeStamp (2) + Data (2)
-    uint16_t TimeStamp = response->data[0]<<8 | response->data[1];
+    //uint16_t TimeStamp = response->data[0]<<8 | response->data[1];
     int16_t Data = response->data[2] | response->data[3]<<8;       // Return original value after inverted with STORE_LE_16 into SERVER before send by BLE
     
     //printf("\r\n\ronDataReadCallback (TimeStamp %x)", TimeStamp);
@@ -307,7 +307,7 @@
 
         // From CLIENT it writes a command in this format: Feature (4) + Type (1) + Data (2)        
         uint32_t Feature = response->data[0]<<24 | response->data[1]<<16 | response->data[2]<<8 | response->data[3];
-        uint8_t Type = response->data[4];
+        //uint8_t Type = response->data[4];
         int16_t Data = response->data[5]<<8 | response->data[6];
             
         //printf("\r\nmyonDataWriteCallback (Feature %x)", Feature);