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:
- 60:76728655fa12
- Parent:
- 56:604a75f111fd
- Child:
- 106:e2be56eadda8
--- a/MBEDio.cpp Mon Mar 03 00:56:27 2014 +0000 +++ b/MBEDio.cpp Mon Mar 03 03:32:42 2014 +0000 @@ -47,9 +47,14 @@ // get the string value char *MBEDio::stringValue() { - this->update(); - if (this->resource() != NULL) return this->resource()->getValuePointer(); - return NULL; + if (this->resource() != NULL) { + this->update(); + return this->resource()->getValuePointer(); + } + else { + this->logger()->log("stringValue: returning NULL - no resource bound to me"); + return NULL; + } } // get the Error Logger