I don't know why this is happening.

Fork of BLE_API by Bluetooth Low Energy

Revision:
152:fc0bb2ba916b
Parent:
151:cb5df770f05b
Child:
153:424ca18dd5f0
--- 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);
     }