Wang Xinglu / BLE_API

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Revision:
38:02cf26a2a4db
Parent:
37:7e8de07642e0
Child:
39:a57137537521
--- a/hw/BLEDevice.h	Thu May 22 13:25:24 2014 +0100
+++ b/hw/BLEDevice.h	Thu May 22 13:30:05 2014 +0100
@@ -41,7 +41,7 @@
      * Set the BTLE MAC address and type.
      * @return
      */
-    ble_error_t setAddress(Gap::addr_type_t type, uint8_t address[6]);
+    ble_error_t setAddress(Gap::addr_type_t type, const uint8_t address[6]);
 
     ble_error_t setAdvertisingData(GapAdvertisingData &ADStructures,
                                    GapAdvertisingData &scanResponse);
@@ -55,7 +55,7 @@
     virtual GattServer& getGattServer() = 0;
 };
 
-inline ble_error_t BLEDevice::setAddress(Gap::addr_type_t type, uint8_t address[6]) {
+inline ble_error_t BLEDevice::setAddress(Gap::addr_type_t type, const uint8_t address[6]) {
     return getGap().setAddress(type, address);
 }