research application on sending data to headend

Dependencies:   DataStore JobScheduler NetworkServices W5500Interface nanopb protocol

See "main.cpp" documentation on "API Documentation" tab for details about application.

Revision:
0:2c57ed6943f7
Child:
1:eebe442fc126
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/source/main.cpp	Thu Jul 13 17:22:32 2017 +0000
@@ -0,0 +1,33 @@
+#include "mbed.h"
+
+#include "mbed-trace/mbed_trace.h"
+#define TRACE_GROUP  "main"
+
+ // These are necessary only if thread safety is needed
+static Mutex TracingLock;
+static void tracingWait()
+{
+    TracingLock.lock();
+}
+static void tracingRelease()
+{
+    TracingLock.unlock();
+}
+
+int main()
+{
+    printf("\n==Borsch==\n");
+    
+    /* Setup tracing */
+    mbed_trace_mutex_wait_function_set( tracingWait ); // only if thread safety is needed
+    mbed_trace_mutex_release_function_set( tracingRelease ); // only if thread safety is needed
+    mbed_trace_init();       // initialize the trace library
+    
+    tr_info("**Started**");    //-> "[INFO][main]: this is an info msg"    
+    
+    
+
+    tr_debug("this is debug msg");  //-> "[DBG ][main]: this is a debug msg"
+    tr_info("**Finished**");    //-> "[INFO][main]: this is an info msg"    
+    exit(0);
+}