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.
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate writable_gatt ... more
Diff: nRF51Gap.cpp
- Revision:
- 77:9886b2865631
- Parent:
- 70:d57285f18f65
- Child:
- 179:10e4c13360d9
--- a/nRF51Gap.cpp Fri Nov 21 10:00:41 2014 +0000
+++ b/nRF51Gap.cpp Fri Nov 21 10:00:41 2014 +0000
@@ -304,7 +304,7 @@
@endcode
*/
/**************************************************************************/
-ble_error_t nRF51Gap::setAddress(addr_type_t type, const uint8_t address[ADDR_LEN])
+ble_error_t nRF51Gap::setAddress(addr_type_t type, const address_t address)
{
if (type > ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE) {
return BLE_ERROR_PARAM_OUT_OF_RANGE;
@@ -319,7 +319,7 @@
return BLE_ERROR_NONE;
}
-ble_error_t nRF51Gap::getAddress(addr_type_t *typeP, uint8_t addressP[ADDR_LEN])
+ble_error_t nRF51Gap::getAddress(addr_type_t *typeP, address_t address)
{
ble_gap_addr_t dev_addr;
if (sd_ble_gap_address_get(&dev_addr) != NRF_SUCCESS) {
@@ -329,8 +329,8 @@
if (typeP != NULL) {
*typeP = static_cast<addr_type_t>(dev_addr.addr_type);
}
- if (addressP != NULL) {
- memcpy(addressP, dev_addr.addr, ADDR_LEN);
+ if (address != NULL) {
+ memcpy(address, dev_addr.addr, ADDR_LEN);
}
return BLE_ERROR_NONE;
}

