endpoint including temperature and distance sensors

Dependencies:   mbed mbedConnectorInterface mbedEndpointNetwork TrashSensors

Fork of TempAndDistTest by Tim Ambrose

resource/TemperatureResource.cpp

Committer:
coyotebush
Date:
2015-05-25
Revision:
11:ac0ff76a6deb
Parent:
6:bbea44df21e8

File content as of revision 11:ac0ff76a6deb:

#include "TemperatureResource.h"

string TemperatureResource::get() {
    char buf[10];
    snprintf(buf, 10, "%0.2f", sensor->getTemp());
    return string(buf);
}