nordic
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 338:3d8b3bfe22e1
- Parent:
- 337:6ac9e1b34de0
- Child:
- 340:e5e2157e8b44
diff -r 6ac9e1b34de0 -r 3d8b3bfe22e1 btle/btle_discovery.cpp --- 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();