Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: MBEDio.cpp
- Revision:
- 43:361a61395588
- Parent:
- 40:eae89a487d86
- Child:
- 56:604a75f111fd
--- 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; }