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:
52:f0b4710c43f9
Parent:
43:361a61395588
Child:
103:4b97555bbdfa
--- a/MBEDVoltage.cpp	Sun Mar 02 02:16:41 2014 +0000
+++ b/MBEDVoltage.cpp	Sun Mar 02 17:11:33 2014 +0000
@@ -33,6 +33,6 @@
 
  // update our value
  void MBEDVoltage::update() { 
-    float voltage = voltage_pot.read() * 10.0;      // Scale 0V - 10V
-    if (this->m_resource != NULL && this->m_resource->getValuePointer() != NULL) sprintf(this->m_resource->getValuePointer(),"%.1f",voltage);
+    float voltage = voltage_pot.read() * 120.0;      // Scale 0V - 120V
+    if (this->m_resource != NULL && this->m_resource->getValuePointer() != NULL) sprintf(this->m_resource->getValuePointer(),"%.1fV",voltage);
  }