test
Fork of nRF51822 by
Diff: source/btle/btle_discovery.cpp
- Revision:
- 384:8a1747598ac2
- Parent:
- 381:c997e9717fb7
diff -r 885c4a173a3d -r 8a1747598ac2 source/btle/btle_discovery.cpp --- 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();