Cycle speed and cadence example for the BLE API using nRF51822 native mode drivers
Dependencies: BLE_API mbed nRF51822
Fork of BLE_HeartRate by
Diff: main.cpp
- Revision:
- 73:bae88c99c2ae
- Parent:
- 71:7b6a488af957
- Child:
- 75:7e334e81da21
diff -r a15b8451829f -r bae88c99c2ae main.cpp --- a/main.cpp Sun Aug 16 14:46:43 2015 +0000 +++ b/main.cpp Sun Aug 23 14:00:28 2015 +0000 @@ -54,7 +54,9 @@ /* Setup primary service. */ uint32_t wheelCounter = 100; // init Wheel to 100revs uint16_t crankCounter = 10; // init crank to 10revs - CyclingSpeedAndCadenceService cscService(ble, CyclingSpeedAndCadenceService::LOCATION_CHAINSTAY); + CyclingSpeedAndCadenceService cscService(ble, + CyclingSpeedAndCadenceService::MODE_SPEED_CADENCE, + CyclingSpeedAndCadenceService::LOCATION_CHAINSTAY); /* Setup auxiliary service. */ DeviceInformationService deviceInfo(ble, "ROB", "Model1", "SN1", "hw-rev1", "fw-rev1", "soft-rev1");