Own fork of MbedSmartRest

Dependents:   MbedSmartRestMain MbedSmartRestMain

Fork of MbedSmartRest by Cumulocity Official

Files at this revision

API Documentation at this revision

Comitter:
Cumulocity
Date:
Thu Oct 23 14:41:58 2014 +0200
Parent:
9:158899760473
Child:
11:e1bee9a77652
Commit message:
Updated from revision 207c030e9657

Changed in this revision

MbedClient.h Show annotated file Show diff for this revision Revisions of this file
SmartRest.h Show annotated file Show diff for this revision Revisions of this file
--- a/MbedClient.h	Thu Oct 23 13:23:43 2014 +0200
+++ b/MbedClient.h	Thu Oct 23 14:41:58 2014 +0200
@@ -36,7 +36,7 @@
 #include "MbedDataSink.h"
 #include "HTTPResponseFilter.h"
 
-#define MBCL_DBG(...) do { fprintf(stderr, "MbedClient: "); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\r\n"); } while (0);
+#define MBCL_DBG(...) do { printf("\033[32mMbedClient:\033[39m "); printf(__VA_ARGS__); printf("\r\n"); } while (0);
 //#define MBCL_DBG(fmt, ...)
 
 class MbedClient : public AbstractClient {
--- a/SmartRest.h	Thu Oct 23 13:23:43 2014 +0200
+++ b/SmartRest.h	Thu Oct 23 14:41:58 2014 +0200
@@ -66,6 +66,7 @@
     uint8_t receive(ParsedRecord&);
     void stop();
 #endif
+    const char * getIdentifier();
 
 protected:
 #ifdef SMARTREST_TRANSACTIONAL
@@ -73,7 +74,6 @@
     uint8_t receive(ParsedRecord&);
     void stop();
 #endif
-    const char * getIdentifier();
     uint8_t beginRequest(const char*);
     uint8_t awaitResponse();
     bool setMoGid(ParsedRecord&);