Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Hello_BLE F446RE-BLE
Fork of X_NUCLEO_IDB0XA1 by
Diff: btle/src/btle.cpp
- Revision:
- 55:0e4db6804c8d
- Parent:
- 54:bae48224c2f9
- Child:
- 56:20e83a284019
--- a/btle/src/btle.cpp Wed Oct 01 05:39:59 2014 +0000
+++ b/btle/src/btle.cpp Wed Oct 01 08:49:52 2014 +0000
@@ -182,7 +182,7 @@
{
evt_disconn_complete *evt = (evt_disconn_complete*)event_pckt;
- BlueNRGGap::getInstance().processHandleSpecificEvent(GapEvents::GAP_EVENT_DISCONNECTED, evt->handle);
+ BlueNRGGap::getInstance().processDisconnectionEvent(evt->handle, BlueNRGGap::REMOTE_USER_TERMINATED_CONNECTION);
}
break;
@@ -196,7 +196,9 @@
evt_le_connection_complete *cc = (evt_le_connection_complete *)evt->data;
BlueNRGGap::getInstance().setConnectionHandle(cc->handle);
- BlueNRGGap::getInstance().processHandleSpecificEvent(GapEvents::GAP_EVENT_CONNECTED, cc->handle);
+ BlueNRGGap::ConnectionParams_t connectionParams;
+ BlueNRGGap::getInstance().getPreferredConnectionParams(&connectionParams);
+ BlueNRGGap::getInstance().processConnectionEvent(cc->handle, (const BlueNRGGap::ConnectionParams_t *)&connectionParams);
}
break;
}
