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.
Fork of nRF51822 by
Revision 384:8a1747598ac2, committed 2015-07-06
- Comitter:
- rgrover1
- Date:
- Mon Jul 06 10:21:03 2015 +0100
- Parent:
- 383:885c4a173a3d
- Child:
- 385:6c82f06746bb
- Commit message:
- Synchronized with git rev 57c99a5a
Author: Rohit Grover
fix #22: add GattClient API for handling HVX Events (notifications and indications).
Changed in this revision
| source/btle/btle_discovery.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/source/btle/btle_discovery.cpp Mon Jul 06 10:21:03 2015 +0100
+++ b/source/btle/btle_discovery.cpp Mon Jul 06 10:21:03 2015 +0100
@@ -76,6 +76,17 @@
nRF51GattClient::getInstance().processWriteResponse(&response);
}
break;
+
+ case BLE_GATTC_EVT_HVX: {
+ GattHVXCallbackParams params;
+ params.handle = p_ble_evt->evt.gattc_evt.params.hvx.handle;
+ params.type = static_cast<HVXType_t>(p_ble_evt->evt.gattc_evt.params.hvx.type);
+ params.len = p_ble_evt->evt.gattc_evt.params.hvx.len;
+ params.data = p_ble_evt->evt.gattc_evt.params.hvx.data;
+
+ nRF51GattClient::getInstance().processHVXEvent(¶ms);
+ }
+ break;
}
sdSingleton.progressCharacteristicDiscovery();
