BLE heart rate example, with yotta machinations.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_HeartRate by
Diff: main.cpp
- Revision:
- 53:06a74fd722b8
- Parent:
- 52:6bbf62943106
- Child:
- 55:3a7d497a3e03
--- a/main.cpp Fri Nov 21 10:12:28 2014 +0000 +++ b/main.cpp Fri Nov 28 14:15:43 2014 +0000 @@ -97,7 +97,7 @@ ble.accumulateAdvertisingPayload(GapAdvertisingData::GENERIC_HEART_RATE_SENSOR); ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME, (uint8_t *)DEVICE_NAME, sizeof(DEVICE_NAME)); ble.setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED); - ble.setAdvertisingInterval(1600); /* 1000ms; in multiples of 0.625ms. */ + ble.setAdvertisingInterval(Gap::MSEC_TO_ADVERTISEMENT_DURATION_UNITS(1000)); ble.startAdvertising(); while (true) {