Heart Rate Monitor example for the BLE
Dependencies: BLE_API X_NUCLEO_IDB0XA1 mbed
Fork of Program3_BLEHeartRate by
Diff: main.cpp
- Revision:
- 2:bc0c0d442a24
- Parent:
- 1:11cd427bbc8b
- Child:
- 3:a51ca6313ad2
diff -r 11cd427bbc8b -r bc0c0d442a24 main.cpp --- a/main.cpp Tue Sep 29 09:11:55 2015 +0000 +++ b/main.cpp Tue Sep 29 09:23:04 2015 +0000 @@ -31,7 +31,7 @@ GattService::UUID_DEVICE_INFORMATION_SERVICE}; static volatile bool triggerSensorPolling = false; -void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason) +void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params) { ble.gap().startAdvertising(); // restart advertising }