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: services/URIBeacon2Service.h
- Revision:
- 152:fc0bb2ba916b
- Parent:
- 151:cb5df770f05b
- Child:
- 153:424ca18dd5f0
diff -r cb5df770f05b -r fc0bb2ba916b services/URIBeacon2Service.h --- a/services/URIBeacon2Service.h Fri Nov 28 14:11:20 2014 +0000 +++ b/services/URIBeacon2Service.h Fri Nov 28 14:11:20 2014 +0000 @@ -33,6 +33,7 @@ size_t sizeofURLData = strlen(urldata); size_t encodedBytes = encodeServiceData(urldata, sizeofURLData); + ble.setTxPower(power); ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_16BIT_SERVICE_IDS, BEACON_UUID, sizeof(BEACON_UUID)); ble.accumulateAdvertisingPayload(GapAdvertisingData::SERVICE_DATA, serviceDataPayload, encodedBytes + 4); }