mqtt specific components for the impact mbed endpoint library

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp

Revision:
17:36a4ab911aaa
Parent:
15:363a3299e41a
Child:
18:8ab7aa1dbb41
--- a/MBEDEndpoint.cpp	Mon Mar 31 18:57:58 2014 +0000
+++ b/MBEDEndpoint.cpp	Mon Mar 31 21:03:09 2014 +0000
@@ -122,8 +122,9 @@
  bool MBEDEndpoint::initializePersonalities() {
  #ifdef LIGHT_PERSONALITY
     return this->initializeLights();
- #else
-    return NULL;
+ #endif
+ #ifdef COPCAR_PERSONALITY
+    return this->initializeLights();
  #endif
  }
  
@@ -162,11 +163,12 @@
  
  // initialize the ResourceFactory to fit our personality
  ResourceFactory *MBEDEndpoint::initResourceFactory() {
- #ifdef LIGHT_PERSONALITY
-    return this->initLightResourceFactory();
- #else
-    return NULL;
- #endif
+#ifdef LIGHT_PERSONALITY
+    return this->initLightResourceFactory(); 
+#endif
+#ifdef COPCAR_PERSONALITY
+    return this->initLightResourceFactory(); 
+#endif
  }
  
  // initialize a Light Resource Factory