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/URIBeacon2Service.h
- Revision:
- 201:9bb7b3f45c20
- Parent:
- 200:80dd3e50705c
- Child:
- 202:c19c327cb985
diff -r 80dd3e50705c -r 9bb7b3f45c20 services/URIBeacon2Service.h
--- a/services/URIBeacon2Service.h Mon Dec 01 14:31:17 2014 +0000
+++ b/services/URIBeacon2Service.h Mon Dec 01 14:31:17 2014 +0000
@@ -66,7 +66,7 @@
flags(flagsIn),
effectiveTxPower(effectiveTxPowerIn),
powerLevels(),
- beaconPeriod(Gap::MSEC_TO_ADVERTISEMENT_DURATION_UNITS(beaconPeriodIn)),
+ beaconPeriod(beaconPeriodIn),
lockedStateChar(lockedStateCharUUID, reinterpret_cast<uint8_t *>(&lockedState), 1, 1, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ),
uriDataChar(uriDataCharUUID,
uriData,
@@ -182,7 +182,7 @@
ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_16BIT_SERVICE_IDS, BEACON_UUID, sizeof(BEACON_UUID));
ble.accumulateAdvertisingPayload(GapAdvertisingData::SERVICE_DATA, serviceDataPayload, encodedBytes + 4);
- ble.setAdvertisingInterval(beaconPeriod);
+ ble.setAdvertisingInterval(Gap::MSEC_TO_ADVERTISEMENT_DURATION_UNITS(beaconPeriod));
ble.setTxPower(effectiveTxPower);
}
