test

Dependencies:   nrf51-sdk

Dependents:   microbit-dal

Fork of nRF51822 by Lancaster University

Revision:
335:601d65634447
Parent:
333:8eedcd324853
Child:
336:6ac9e1b34de0
--- 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
@@ -56,11 +56,11 @@
 
         case BLE_GATTC_EVT_READ_RSP:
             if (DiscoveredCharacteristic::onDataReadCallback != NULL) {
-                GattClient::ReadResponse_t response = {
-                    .handle = p_ble_evt->evt.gattc_evt.params.read_rsp.handle,
-                    .offset = p_ble_evt->evt.gattc_evt.params.read_rsp.offset,
-                    .len    = p_ble_evt->evt.gattc_evt.params.read_rsp.len,
-                    .data   = p_ble_evt->evt.gattc_evt.params.read_rsp.data,
+                GattCharacteristicReadCBParams response = {
+                    .charHandle = p_ble_evt->evt.gattc_evt.params.read_rsp.handle,
+                    .offset     = p_ble_evt->evt.gattc_evt.params.read_rsp.offset,
+                    .len        = p_ble_evt->evt.gattc_evt.params.read_rsp.len,
+                    .data       = p_ble_evt->evt.gattc_evt.params.read_rsp.data,
                 };
                 DiscoveredCharacteristic::onDataReadCallback(&response);
             }