Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/AnalyticsLogger/AnalyticsLogger.cpp
- Revision:
- 58:a4422d19b2ea
- Parent:
- 0:65cfa4873284
- Child:
- 60:96e17fb215a6
--- a/src/AnalyticsLogger/AnalyticsLogger.cpp Wed Sep 14 16:10:36 2016 +0000
+++ b/src/AnalyticsLogger/AnalyticsLogger.cpp Wed Sep 14 18:54:23 2016 +0000
@@ -1,5 +1,5 @@
/******************************************************************************
- *
+ *
* File: AnalyticsLogger.cpp
* Desciption: source for the ICE Analytics Logger
*
@@ -7,10 +7,11 @@
#include "global.h"
#include <stdio.h>
#include "AnalyticsLogger.h"
+#include "eep.h"
/*****************************************************************************
* Function: AnalyticsLogger
- * Description: entry point for the Analytics Logger
+ * Description: entry point for the Analytics Logger
*
* @param (IN) args (user-defined arguments)
* @return none
@@ -20,5 +21,15 @@
printf("\r%s has started...\n", __func__);
while ( true ) {
+// logInfo("Analytics Logger checking for MAIL");
+ osEvent evt = AnalyticsLoggerMailBox.get(1000);
+ 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);
+ break;
+ } else {
+// logInfo("Analytics Logger no MAIL");
+ }
}
}
\ No newline at end of file
