Dreamforce 2015 BLE-based mDS HeartRate Monitor Endpoint
Dependencies: GroveEarbudSensor mbed mbedConnectorInterface mbedEndpointNetwork_BLE
Diff: mbedEndpointResources/LocationResource.h
- Revision:
- 47:5e57fdac6765
- Parent:
- 42:9741365cff35
- Child:
- 53:d22af3b91e4c
diff -r ac4bcdaa4b32 -r 5e57fdac6765 mbedEndpointResources/LocationResource.h --- a/mbedEndpointResources/LocationResource.h Thu Aug 27 18:22:39 2015 +0000 +++ b/mbedEndpointResources/LocationResource.h Sun Aug 30 05:39:19 2015 +0000 @@ -32,7 +32,7 @@ BLELocation _ble_location(&pc); // BLE Location from the UART Proxy application // Maximum Location JSON Length : {"latitude":XXX.YYYYYY, "longitude":XXX.YYYYYY, "msl":XXXXXX, "speed":XXXXXX} -#define LOCATION_JSON_LENGTH 96 +#define LOCATION_JSON_LENGTH 256 /** LocationResource class */ @@ -50,7 +50,7 @@ /** Get the value of the Location sensor - @returns string containing the temperature sensor value + @returns string containing the location value */ virtual string get() { _ble_location.updateLocation(); @@ -59,8 +59,8 @@ sprintf(json,"{\"latitude\":%s,\"longitude\":%s,\"msl\":%s,\"speed\":%s}", _ble_location.getLatitude(), _ble_location.getLongitude(), - _ble_location.getMSLAltitude(), - _ble_location.getSpeed()); + _ble_location.getMSLAltitude(), // in meters + _ble_location.getSpeed()); // in meters/second return string(json); } };