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:
- 31:46dff2d2dd4f
- Parent:
- 30:555e6697b368
- Child:
- 40:bc6ea0d04238
--- a/btle/src/btle.cpp Thu Aug 21 10:03:17 2014 +0000 +++ b/btle/src/btle.cpp Mon Aug 25 06:19:28 2014 +0000 @@ -174,7 +174,9 @@ case EVT_DISCONN_COMPLETE: { - BlueNRGGap::getInstance().handleEvent(GapEvents::GAP_EVENT_DISCONNECTED); + evt_disconn_complete *evt = (evt_disconn_complete*)event_pckt; + + BlueNRGGap::getInstance().processHandleSpecificEvent(GapEvents::GAP_EVENT_DISCONNECTED, evt->handle); } break; @@ -188,7 +190,7 @@ evt_le_connection_complete *cc = (evt_le_connection_complete *)evt->data; BlueNRGGap::getInstance().setConnectionHandle(cc->handle); - BlueNRGGap::getInstance().handleEvent(GapEvents::GAP_EVENT_CONNECTED); + BlueNRGGap::getInstance().processHandleSpecificEvent(GapEvents::GAP_EVENT_CONNECTED, cc->handle); } break; }