BLE PLX profile with customized services (raw data).

Dependencies:   MtSense06

https://mtmtechblog.files.wordpress.com/2016/04/mtsense06-post-title.jpeg?w=772 https://blog.mtmtech.com.tw/2016/06/28/pulse-oximeter-with-mtconnect04/

Revision:
1:0ec0e5694c4a
Parent:
0:528034040a12
Child:
2:7a08b9410b96
--- a/main.cpp	Wed Feb 22 09:45:51 2017 +0000
+++ b/main.cpp	Thu Feb 23 09:31:56 2017 +0000
@@ -60,7 +60,7 @@
     if (ble.gap().getState().connected && m1.IsSkinIn()) {
         m1.GetPlx(&plx);
         plxServicePtr->updatePlxMeas((float)plx.spo2, (float)plx.pulseRate);
-    }  
+    }
 }
 
 void rawCallback(void)
@@ -73,12 +73,12 @@
     if (ble.gap().getState().connected && m1.IsSkinIn()) {
         m1.GetRaw(&raw);
         
-        raw_x3[6*cnt+0] = (uint8_t)(raw.red >> 0);
-        raw_x3[6*cnt+1] = (uint8_t)(raw.red >> 8);
-        raw_x3[6*cnt+2] = (uint8_t)(raw.ir >> 0);
-        raw_x3[6*cnt+3] = (uint8_t)(raw.ir >> 8);
-        raw_x3[6*cnt+4] = (uint8_t)(raw.green >> 0);
-        raw_x3[6*cnt+5] = (uint8_t)(raw.green >> 8);
+        raw_x3[6*cnt+0] = (uint8_t)(raw.red   >> 8);
+        raw_x3[6*cnt+1] = (uint8_t)(raw.red   >> 0);
+        raw_x3[6*cnt+2] = (uint8_t)(raw.ir    >> 8);
+        raw_x3[6*cnt+3] = (uint8_t)(raw.ir    >> 0);
+        raw_x3[6*cnt+4] = (uint8_t)(raw.green >> 8);
+        raw_x3[6*cnt+5] = (uint8_t)(raw.green >> 0);
         
         if (++cnt >= 3) {
             plxServicePtr->updateRaw(raw_x3);