Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
116:7337ed514891
Parent:
79:d6638c01eeec
Child:
125:f11cc566d073
diff -r e900bd138bf3 -r 7337ed514891 src/AnalyticsLogger/AnalyticsLogger.cpp
--- a/src/AnalyticsLogger/AnalyticsLogger.cpp	Thu Sep 22 16:10:01 2016 +0000
+++ b/src/AnalyticsLogger/AnalyticsLogger.cpp	Thu Sep 22 21:09:49 2016 +0000
@@ -7,7 +7,6 @@
 #include "global.h"
 #include <stdio.h>
 #include "AnalyticsLogger.h"
-#include "CloudDataLoggerApi.h"
 #include "eep.h"
 #include "rtc.h"
 
@@ -31,22 +30,6 @@
     printf("\r\n%s has started at: %s\r\n", __func__, time_string);
 
     while ( true ) {
-        
-        if( CloudDataHandlerConnected == true )
-        {
-            // we are connected to the cloud, we don't save anything to EEPROM.
-            logInfo("%s:%d Not logging to EEPROM", __func__, __LINE__);
-            Thread::wait(5000);
-            continue;
-        }
-        
-        osEvent evt = AnalyticsLoggerMailBox.get(50);
-        if (evt.status == osEventMail) {
-            AnalyticsLoggerReq_t *mail = (AnalyticsLoggerReq_t*)evt.value.p;
-            logInfo("Analytics Logger Mail Received: Timestamp: %s, Entry: %s", mail->timestamp, mail->log_entry);
-            AnalyticsLoggerMailBox.free(mail);
-            continue;
-        }
 
         curr_sec = time(0);
         ts = localtime(&curr_sec);