use ble.setTxPower()

master
Rohit Grover 2014-11-26 13:40:14 +00:00
parent 07b87a6412
commit 5e083c2fce
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ public:
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);
}