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.
Fork of BLE_API by
Diff: hw/BLEDevice.h
- 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);
}
