Own fork of MbedSmartRest

Dependents:   MbedSmartRestMain MbedSmartRestMain

Fork of MbedSmartRest by Cumulocity Official

Revision:
17:b3a4b4bdfc59
Parent:
16:81f9e39914cf
Child:
19:81dfc04ce0bb
--- a/MbedClient.h	Tue Mar 03 14:51:54 2015 +0000
+++ b/MbedClient.h	Wed Mar 04 09:35:25 2015 +0000
@@ -36,12 +36,10 @@
 #include "MbedDataSink.h"
 #include "HTTPResponseFilter.h"
 
-#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 {
 public:
-    MbedClient(const char*, uint16_t, uint8_t);
+    MbedClient(const char*, uint16_t, MDMSerial&, uint8_t);
     virtual ~MbedClient();
 
     uint8_t setAuthorization(const char*, const char*);
@@ -72,6 +70,9 @@
     MbedDataSource _source;
     MbedDataSink _sink;
     HTTPResponseFilter _filter;
+    MDMSerial& _mdm;
+    char cachedIP[16];
+    unsigned short cachedIPValid;
 };
 
 #endif