Dreamforce 2015 BLE-based mDS HeartRate Monitor Endpoint
Dependencies: GroveEarbudSensor mbed mbedConnectorInterface mbedEndpointNetwork_BLE
Diff: main.cpp
- Revision:
- 43:0c80682b673d
- Parent:
- 42:9741365cff35
- Child:
- 44:6171d54fed45
--- a/main.cpp Sat Jul 25 20:42:45 2015 +0000 +++ b/main.cpp Mon Jul 27 03:03:32 2015 +0000 @@ -23,15 +23,11 @@ // mbed Connector Interface (configuration) #include "mbedConnectorInterface.h" -// mbed Connector Endpoint includes -#include "ConnectorEndpoint.h" -#include "OptionsBuilder.h" +// mbed Connector Interface (configuration) +#include "mbedConnectorInterface.h" -// USB Serial port access for debugging/logging -RawSerial pc(USBTX,USBRX); - -// Logging facility -Logger logger(&pc); +// mbed Network Endpoint +#include "mbedEndpointNetwork.h" // Only Nordic boards are supported... #ifdef TARGET_NRF51_DK @@ -105,7 +101,7 @@ // add the heartrate resource .addResource(&hr) // Resource implements its own observationing... - .addResource(&location,30000) // observe every 30 seconds + .addResource(&location,22000) // observe every 22 seconds // finalize the configuration... .build();