aa
Dependents: Peripheral_1_serial_copy Peripheral_1_serial 151006_1st_Scenario_normal
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 337:3d8b3bfe22e1
- Parent:
- 336:6ac9e1b34de0
- Child:
- 339: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();