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:
43:361a61395588
Parent:
40:eae89a487d86
Child:
56:604a75f111fd
diff -r ff05e71c4cb5 -r 361a61395588 MBEDio.cpp
--- a/MBEDio.cpp	Sat Mar 01 07:43:09 2014 +0000
+++ b/MBEDio.cpp	Sat Mar 01 08:21:12 2014 +0000
@@ -33,7 +33,7 @@
  float MBEDio::floatValue() { 
     this->update(); 
     float floatValue = 0.0;
-    if (this->m_resource != NULL && this->m_resource->getValue() != NULL) sscanf(this->m_resource->getValue(),"%f",&floatValue);
+    if (this->m_resource != NULL && this->m_resource->getValuePointer() != NULL) sscanf(this->m_resource->getValuePointer(),"%f",&floatValue);
     return floatValue; 
  }
  
@@ -41,14 +41,14 @@
  int MBEDio::intValue() { 
     this->update();  
     int intValue = 0;
-    if (this->m_resource != NULL && this->m_resource->getValue() != NULL) sscanf(this->m_resource->getValue(),"%d",&intValue);
+    if (this->m_resource != NULL && this->m_resource->getValuePointer() != NULL) sscanf(this->m_resource->getValuePointer(),"%d",&intValue);
     return intValue;  
  }
  
  // get the string value
  char *MBEDio::stringValue() { 
     this->update(); 
-    if (this->m_resource != NULL) return this->m_resource->getValue(); 
+    if (this->m_resource != NULL) return this->m_resource->getValuePointer(); 
     return NULL;
  }