テスト用
Fork of nRF51822 by
Diff: nRF51Gap.cpp
- Revision:
- 3:791d672cbbec
- Parent:
- 1:f84abedbf4fb
- Child:
- 17:c3e11bb6cb72
--- 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;