endpoint including temperature and distance sensors

Dependencies:   mbed mbedConnectorInterface mbedEndpointNetwork TrashSensors

Fork of TempAndDistTest by Tim Ambrose

Revision:
6:bbea44df21e8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/resource/TemperatureResource.cpp	Tue May 05 05:18:03 2015 +0000
@@ -0,0 +1,7 @@
+#include "TemperatureResource.h"
+
+string TemperatureResource::get() {
+    char buf[10];
+    snprintf(buf, 10, "%0.2f", sensor->getTemp());
+    return string(buf);
+}
\ No newline at end of file