mbed Connector Endpoint interface. This interface permits a mbed endpoint to easily setup MDS resources and emit those resources to an MDS server.

Dependents:   IoT_LED_demo ServoTest uWater_Project hackathon ... more

Revision:
5:a929d65eb385
Parent:
2:853f9ecc12df
Child:
16:383ad1356963
--- a/api/Logger.h	Wed Jan 28 12:11:22 2015 +0000
+++ b/api/Logger.h	Wed Jan 28 14:43:46 2015 +0000
@@ -32,6 +32,12 @@
 // Depends on use of BufferedSerial
 #include "BufferedSerial.h"
 
+// Configuration
+#include "mbedConnectorInterface.h"
+
+// logging macro
+#define log(x, ...)  logIt(x"\r\n",##__VA_ARGS__)
+
 /** Logger class
  */
 class Logger
@@ -55,11 +61,11 @@
     virtual ~Logger();
 
     /**
-    Log output
+    Log output to the given serial console
     @param format input format for the logging
     @param ... input (variable arguments to display)
     */
-    void log(const char *format, ...);
+    void logIt(const char *format, ...);
 protected:
 
 private: