nRF51822 serves as the bridge between BLE central and MCU, which makes cental able to fetch photos from serial camera.

Dependencies:   BLE_API mbed nRF51822

Fork of nRF51822_blinky by RedBearLab

Revision:
18:d146cee0a80e
Parent:
17:0c7951915608
Child:
19:03d39b923919
--- a/src/main.cpp	Sun Apr 17 11:02:38 2016 +0000
+++ b/src/main.cpp	Sun May 01 09:45:51 2016 +0000
@@ -11,8 +11,8 @@
 #include "ringBuffer.h"
 #include "application.h"
 
-#define DEVICE_NAME                      "ket_042"
-#define CODE_VERSION                     4
+#define DEVICE_NAME                      "ket_041"
+#define CODE_VERSION                     5
 
 #define SDA_PIN                          P0_8
 #define SCL_PIN                          P0_9
@@ -778,6 +778,8 @@
     ble.gap().stopAdvertising();
     ledPower = 1;
     uartEnable = 0;
+    isMonitoring = false;
+    salivaPeriodically = false;
     #ifdef LOW_POWER_CONSTRAINT
     lowPowerCounter = 0;
     #endif