Press buttons to activate the LED.
Dependencies: BLE_API nRF51822
Fork of Puck by
Diff: Puck.h
- Revision:
- 24:21b5ecbc84ea
- Parent:
- 22:7d728fed55ab
diff -r 7d728fed55ab -r 21b5ecbc84ea Puck.h --- a/Puck.h Tue Mar 03 22:17:17 2015 +0000 +++ b/Puck.h Mon Mar 09 13:23:54 2015 +0000 @@ -211,8 +211,8 @@ deviceName[9] = '\0'; ble.setDeviceName((const uint8_t*) deviceName); - ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED); - LOG_DEBUG("Accumulate advertising payload: BREDR_NOT_SUPPORTED.\n"); + ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE); + LOG_DEBUG("Accumulate advertising payload: BREDR_NOT_SUPPORTED | LE_GENERAL_DISCOVERABLE.\n"); ble.accumulateAdvertisingPayload(GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA, beaconPayload, sizeof(beaconPayload)); LOG_DEBUG("Accumulate advertising payload: beacon data.\n");