Had to fork with a different name, because of some incompatibility issues.

Dependencies:   MQTT

Revision:
3:3d91bf839b49
Parent:
2:199ddea804cd
Child:
5:ea9f483e0294
--- a/DeviceClient.h	Fri Nov 06 14:56:34 2015 +0000
+++ b/DeviceClient.h	Tue Jan 05 08:52:02 2016 +0000
@@ -12,7 +12,7 @@
  *
  * Contributors:
  *    Sathisumar Palaniappan - initial implementation
- *
+ *    Sathisumar Palaniappan - added reconnect logic and isConnected() method
  *******************************************************************************/
  
  #ifndef DeviceClient_H
@@ -43,6 +43,7 @@
     class DeviceClient
     {
         private:
+            bool connected;
             char *org;
             char *deviceType;
             char *deviceId;
@@ -65,8 +66,10 @@
             void setCommandCallback(CommandHandler callbackFunc);
             char* getDeviceId(char* buf, int buflen);
             void yield(int ms);
+            bool isConnected();
             bool connect();
             bool disconnect();
+            bool reConnect();
      };
 }
 #endif
\ No newline at end of file