vbfgh
Dependencies: BLE_API HCSR04 X_NUCLEO_IDB0XA1 mbed
Fork of BLE_LED_Button_Nucleo by
Diff: main.cpp
- Revision:
- 12:7eebfdfdd892
- Parent:
- 11:5e43f35f64a8
- Child:
- 13:0326e963b96c
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(); }