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:
- 3:791d672cbbec
- Parent:
- 1:f84abedbf4fb
- Child:
- 17:c3e11bb6cb72
diff -r 49e7ee9e88ab -r 791d672cbbec nRF51Gap.cpp
--- a/nRF51Gap.cpp Thu Apr 03 02:00:35 2014 +0100
+++ b/nRF51Gap.cpp Thu May 22 15:03:55 2014 +0100
@@ -58,7 +58,7 @@
@endcode
*/
/**************************************************************************/
-ble_error_t nRF51Gap::setAdvertisingData(GapAdvertisingData & advData, GapAdvertisingData & scanResponse)
+ble_error_t nRF51Gap::setAdvertisingData(const GapAdvertisingData & advData, const GapAdvertisingData & scanResponse)
{
/* Make sure we don't exceed the advertising payload length */
if (advData.getPayloadLen() > GAP_ADVERTISING_DATA_MAX_PAYLOAD)
@@ -119,7 +119,7 @@
@endcode
*/
/**************************************************************************/
-ble_error_t nRF51Gap::startAdvertising(GapAdvertisingParams & params)
+ble_error_t nRF51Gap::startAdvertising(const GapAdvertisingParams & params)
{
/* Make sure we support the advertising type */
if (params.getAdvertisingType() == GapAdvertisingParams::ADV_CONNECTABLE_DIRECTED)
@@ -270,7 +270,7 @@
@endcode
*/
/**************************************************************************/
-ble_error_t nRF51Gap::setAddress(addr_type_t type, uint8_t address[6])
+ble_error_t nRF51Gap::setAddress(addr_type_t type, const uint8_t address[6])
{
if ( type > ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE) return BLE_ERROR_PARAM_OUT_OF_RANGE;

