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:
135:7f3f963cd159
Parent:
128:fde8d042a9af
Child:
192:54b758a8eaaa
--- a/MBEDBattery.cpp	Fri Mar 28 16:24:12 2014 +0000
+++ b/MBEDBattery.cpp	Fri Mar 28 17:49:10 2014 +0000
@@ -34,5 +34,5 @@
  // update our value
  void MBEDBattery::update() {
      float bat = battery_pot.read() * 5.0;         // Scale 0V - 5.0V
-     if (this->m_resource != NULL && this->m_resource->getValuePointer() != NULL) sprintf(this->m_resource->getValuePointer(),"%.1fV",bat); 
+     if (this->resource() != NULL && this->resource()->getValuePointer() != NULL) sprintf(this->resource()->getValuePointer(),"%.1fV",bat); 
  }