Funciona no redbear
Dependencies: BLE_API mbed nRF51822
Fork of BLE_LED_Controller by
Diff: main.cpp
- Revision:
- 10:633cec718bf4
- Parent:
- 6:e0fc9072e853
- Child:
- 12:36a9f01cfa0a
--- a/main.cpp Wed Nov 05 14:17:33 2014 +0000 +++ b/main.cpp Fri Nov 28 14:18:56 2014 +0000 @@ -73,7 +73,7 @@ ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_128BIT_SERVICE_IDS, (const uint8_t *)UARTServiceUUID_reversed, sizeof(UARTServiceUUID_reversed)); - ble.setAdvertisingInterval(160); /* 100ms; in multiples of 0.625ms. */ + ble.setAdvertisingInterval(Gap::MSEC_TO_ADVERTISEMENT_DURATION_UNITS(1000)); ble.startAdvertising(); UARTService uartService(ble);