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: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Diff: services/URIBeaconConfigService.h
- Revision:
- 319:3782a0d47b00
- Parent:
- 318:fe467afccd02
- Child:
- 320:c39b901dca81
--- a/services/URIBeaconConfigService.h Fri Mar 13 09:57:57 2015 +0000
+++ b/services/URIBeaconConfigService.h Fri Mar 13 09:57:57 2015 +0000
@@ -160,7 +160,7 @@
* afterwards. */
void setupURIBeaconConfigAdvertisements()
{
- char DEVICE_NAME[] = "mUriBeacon Config";
+ const char DEVICE_NAME[] = "mUriBeacon Config";
ble.clearAdvertisingPayload();
@@ -174,7 +174,7 @@
}
ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_128BIT_SERVICE_IDS, reversedServiceUUID, sizeof(reversedServiceUUID));
ble.accumulateAdvertisingPayload(GapAdvertisingData::GENERIC_TAG);
- ble.accumulateScanResponse(GapAdvertisingData::COMPLETE_LOCAL_NAME, reinterpret_cast<uint8_t *>(&DEVICE_NAME), sizeof(DEVICE_NAME));
+ ble.accumulateScanResponse(GapAdvertisingData::COMPLETE_LOCAL_NAME, reinterpret_cast<const uint8_t *>(&DEVICE_NAME), sizeof(DEVICE_NAME));
ble.accumulateScanResponse(
GapAdvertisingData::TX_POWER_LEVEL,
reinterpret_cast<uint8_t *>(
@@ -182,7 +182,7 @@
sizeof(uint8_t));
ble.setTxPower(params.advPowerLevels[params.txPowerMode]);
- ble.setDeviceName(reinterpret_cast<uint8_t *>(&DEVICE_NAME));
+ ble.setDeviceName(reinterpret_cast<const uint8_t *>(&DEVICE_NAME));
ble.setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED);
ble.setAdvertisingInterval(Gap::MSEC_TO_ADVERTISEMENT_DURATION_UNITS(ADVERTISING_INTERVAL_MSEC));
}
