Update for latest nRF51822 code changes.

Dependencies:   BLE_API nRF51822

Fork of Puck by Nordic Pucks

Files at this revision

API Documentation at this revision

Comitter:
aleksanb
Date:
Mon Mar 09 13:23:54 2015 +0000
Parent:
22:7d728fed55ab
Child:
24:cd6703df9501
Commit message:
Correctly advertise Bluetooth LE connectivity.; ; Now pucks are connectable in master control panel for android again :D

Changed in this revision

Puck.h Show annotated file Show diff for this revision Revisions of this file
--- 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");