LED and Button for BLE workshop (TinyBLE)
Dependencies: BLE_API mbed nRF51822
Fork of BLE_LED by
Diff: main.cpp
- Revision:
- 12:7eebfdfdd892
- Parent:
- 11:5e43f35f64a8
--- 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();
}
