BLE Heart Rate Sample Program for HRM1017 which is using Nordic nRF51822 confirmed the connection of nRFToolbox on Android.
Dependencies: BLE_API mbed nRF51822 color_pixels
Fork of BLE_HTM_HRM1017 by
Diff: main.cpp
- Revision:
- 9:554af3c63d0c
- Parent:
- 8:f753b4b022a8
- Child:
- 10:8a67578c3ef0
--- a/main.cpp Thu Aug 27 15:14:41 2015 +0000 +++ b/main.cpp Fri Nov 27 12:31:49 2015 +0000 @@ -51,11 +51,11 @@ static Gap::ConnectionParams_t connectionParams; -void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason) // Mod +void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params) // Mod { advertisingStateLed = 1; - DEBUG("Disconnected handle %u, reason %u\r\n", handle, reason); + DEBUG("Disconnected handle %u, reason %u\r\n", params->handle, params->reason); DEBUG("Restarting the advertising process\r\n"); ble.gap().startAdvertising(); }