hrm1017 with gy-801 temp
Dependencies: BLE_API TMP102 mbed nRF51822
Fork of BLE_HTM_HRM1017 by
Diff: main.cpp
- Revision:
- 9:554af3c63d0c
- Parent:
- 8:f753b4b022a8
- Child:
- 10:292ca61db2c8
diff -r f753b4b022a8 -r 554af3c63d0c main.cpp --- 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(); }