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:
120:edf33bd41e4f
Parent:
118:c8a80adfe90d
Child:
121:40bb95a10a0e
--- a/Preferences.cpp	Thu Mar 20 01:46:22 2014 +0000
+++ b/Preferences.cpp	Thu Mar 20 02:24:47 2014 +0000
@@ -85,6 +85,15 @@
      return success;
  }
  
+ // HACK: fix up coords because IOC's POINT() macro does not like commas
+ void Preferences::fixCoordsForIOC() {
+     int index = this.indexOfPreference("coords");
+     if (index >= 0) {
+         // remove the comma...
+         for(int i=0;i<strlen(this->m_values[index]);++i) if (this->m_values[index][i] == ',') this->m_values[index][i] = ' ';
+     }
+ }
+ 
  // integer preference with defaults
  int Preferences::getIntPreference(char *name,int def_value) {\
      int int_value = def_value;