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:
- 40:d405c9b1419d
- Parent:
- 39:a57137537521
- Child:
- 41:7ae5c71cd44c
diff -r a57137537521 -r d405c9b1419d hw/BLEDevice.h
--- a/hw/BLEDevice.h Thu May 22 14:51:06 2014 +0100
+++ b/hw/BLEDevice.h Thu May 22 15:02:40 2014 +0100
@@ -43,9 +43,9 @@
*/
ble_error_t setAddress(Gap::addr_type_t type, const uint8_t address[6]);
- ble_error_t setAdvertisingData(GapAdvertisingData &ADStructures,
- GapAdvertisingData &scanResponse);
- ble_error_t setAdvertisingData(GapAdvertisingData &ADStructures);
+ ble_error_t setAdvertisingData(const GapAdvertisingData &ADStructures,
+ const GapAdvertisingData &scanResponse);
+ ble_error_t setAdvertisingData(const GapAdvertisingData &ADStructures);
ble_error_t startAdvertising(GapAdvertisingParams &advParams);
ble_error_t stopAdvertising(void);
ble_error_t disconnect(void);
@@ -61,13 +61,13 @@
}
inline ble_error_t
-BLEDevice::setAdvertisingData(GapAdvertisingData &ADStructures,
- GapAdvertisingData &scanResponse) {
+BLEDevice::setAdvertisingData(const GapAdvertisingData &ADStructures,
+ const GapAdvertisingData &scanResponse) {
return getGap().setAdvertisingData(ADStructures, scanResponse);
}
inline ble_error_t
-BLEDevice::setAdvertisingData(GapAdvertisingData &ADStructures) {
+BLEDevice::setAdvertisingData(const GapAdvertisingData &ADStructures) {
GapAdvertisingData scanResponse;
return getGap().setAdvertisingData(ADStructures, scanResponse);
}
