Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: nrf51-sdk-bluetooth-mdw
Fork of nRF51822 by
Diff: source/btle/btle_discovery.cpp
- Revision:
- 393:0f7c5048efb3
- Parent:
- 391:8cc3528a1233
- Child:
- 415:92bda1851be2
diff -r b21c1373df4d -r 0f7c5048efb3 source/btle/btle_discovery.cpp
--- a/source/btle/btle_discovery.cpp Tue Jul 21 13:23:45 2015 +0100
+++ b/source/btle/btle_discovery.cpp Tue Jul 21 13:23:45 2015 +0100
@@ -14,12 +14,12 @@
* limitations under the License.
*/
-#include "nRF51ServiceDiscovery.h"
-#include "nRF51GattClient.h"
+#include "nRF5xServiceDiscovery.h"
+#include "nRF5xGattClient.h"
void bleGattcEventHandler(const ble_evt_t *p_ble_evt)
{
- nRF51ServiceDiscovery &sdSingleton = nRF51GattClient::getInstance().discovery;
+ nRF5xServiceDiscovery &sdSingleton = nRF5xGattClient::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,
};
- nRF51GattClient::getInstance().processReadResponse(&response);
+ nRF5xGattClient::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,
};
- nRF51GattClient::getInstance().processWriteResponse(&response);
+ nRF5xGattClient::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;
- nRF51GattClient::getInstance().processHVXEvent(¶ms);
+ nRF5xGattClient::getInstance().processHVXEvent(¶ms);
}
break;
}
