LED and Button for BLE workshop (TinyBLE)

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_LED by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
janjongboom
Date:
Mon May 02 09:09:59 2016 +0000
Parent:
11:5e43f35f64a8
Commit message:
Change interval to 50 ms. due to bug in evothings

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 5e43f35f64a8 -r 7eebfdfdd892 main.cpp
--- a/main.cpp	Fri Apr 29 11:44:02 2016 +0000
+++ b/main.cpp	Mon May 02 09:09:59 2016 +0000
@@ -114,7 +114,7 @@
     ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_16BIT_SERVICE_IDS, (uint8_t *)uuid16_list, sizeof(uuid16_list));
     ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME, (uint8_t *)DEVICE_NAME, sizeof(DEVICE_NAME));
     ble.gap().setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED);
-    ble.gap().setAdvertisingInterval(1000); /* 1000ms. */
+    ble.gap().setAdvertisingInterval(50); /* 50ms. Hack for EvoThings. */
     ble.gap().startAdvertising();
 }