test
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 337:3d8b3bfe22e1
- Parent:
- 336:6ac9e1b34de0
- Child:
- 339:e5e2157e8b44
--- a/btle/btle_discovery.cpp Fri Jun 19 15:55:33 2015 +0100 +++ b/btle/btle_discovery.cpp Fri Jun 19 15:55:33 2015 +0100 @@ -65,6 +65,19 @@ DiscoveredCharacteristic::onDataReadCallback(&response); } break; + + case BLE_GATTC_EVT_WRITE_RSP: + if (DiscoveredCharacteristic::onDataWriteCallback != NULL) { + GattWriteCallbackParams response = { + .handle = p_ble_evt->evt.gattc_evt.params.write_rsp.handle, + .writeOp = (GattWriteCallbackParams::WriteOp_t)(p_ble_evt->evt.gattc_evt.params.write_rsp.write_op), + .offset = p_ble_evt->evt.gattc_evt.params.write_rsp.offset, + .len = p_ble_evt->evt.gattc_evt.params.write_rsp.len, + .data = p_ble_evt->evt.gattc_evt.params.write_rsp.data, + }; + DiscoveredCharacteristic::onDataWriteCallback(&response); + } + break; } sdSingleton.progressCharacteristicDiscovery();