Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Revision:
152:659a8ebcbe93
Parent:
135:7f3f963cd159
Child:
153:8b32ee1ed6d6
--- a/Preferences.cpp	Wed Apr 02 06:00:01 2014 +0000
+++ b/Preferences.cpp	Wed Apr 02 16:08:54 2014 +0000
@@ -19,7 +19,9 @@
  #include "mbed.h"
  #include "Preferences.h"
  
+ #ifndef _ENDPOINT_UBLOX_PLATFORM
  LocalFileSystem local("local");
+ #endif
  
  // default constructor
  Preferences::Preferences(ErrorHandler *error_handler) : BaseClass(error_handler,NULL) {
@@ -43,7 +45,8 @@
          memset(this->m_values[i],0,PREFERENCE_VALUE_LEN+1);
      }
      this->m_num_preferences = 0;
-     
+ 
+ #ifndef _ENDPOINT_UBLOX_PLATFORM    
      // read and open the config file
      FILE *fp = fopen(PREFERENCES_FILE,"r");
      if (fp != NULL) {
@@ -85,6 +88,9 @@
          this->logger()->log("Unable to open preferences file %s... Preferences not loaded.",PREFERENCES_FILE);
          success = false;
      }
+#else
+     success = true;
+#endif
      
      // return our status
      return success;