fdsf
Fork of nRF51822 by
Diff: source/btle/btle_discovery.cpp
- Revision:
- 389:5982ee136c47
- Parent:
- 388:db85a09c27ef
- Child:
- 390:d9f7f0134e24
--- a/source/btle/btle_discovery.cpp Tue Jul 21 13:23:44 2015 +0100 +++ b/source/btle/btle_discovery.cpp Tue Jul 21 13:23:44 2015 +0100 @@ -14,12 +14,12 @@ * limitations under the License. */ -#include "nRF5xServiceDiscovery.h" -#include "nRF5xGattClient.h" +#include "nRF51ServiceDiscovery.h" +#include "nRF51GattClient.h" void bleGattcEventHandler(const ble_evt_t *p_ble_evt) { - nRF5xServiceDiscovery &sdSingleton = nRF5xGattClient::getInstance().discovery; + nRF51ServiceDiscovery &sdSingleton = nRF51GattClient::getInstance().discovery; switch (p_ble_evt->header.evt_id) { case BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP: @@ -61,7 +61,7 @@ .len = p_ble_evt->evt.gattc_evt.params.read_rsp.len, .data = p_ble_evt->evt.gattc_evt.params.read_rsp.data, }; - nRF5xGattClient::getInstance().processReadResponse(&response); + nRF51GattClient::getInstance().processReadResponse(&response); } break; @@ -73,7 +73,7 @@ .len = p_ble_evt->evt.gattc_evt.params.write_rsp.len, .data = p_ble_evt->evt.gattc_evt.params.write_rsp.data, }; - nRF5xGattClient::getInstance().processWriteResponse(&response); + nRF51GattClient::getInstance().processWriteResponse(&response); } break; @@ -84,7 +84,7 @@ params.len = p_ble_evt->evt.gattc_evt.params.hvx.len; params.data = p_ble_evt->evt.gattc_evt.params.hvx.data; - nRF5xGattClient::getInstance().processHVXEvent(¶ms); + nRF51GattClient::getInstance().processHVXEvent(¶ms); } break; }