Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_LoopbackUART by
Revision 15:2a9916011a2a, committed 2015-01-02
- Comitter:
- djmannion
- Date:
- Fri Jan 02 15:15:54 2015 +0000
- Parent:
- 14:8ff3bfb6b19d
- Commit message:
- Line 85: was edited to include:
; ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED| GapAdvertisingData::LE_GENERAL_DISCOVERABLE);
;
; This allowed the UART app to connect to the board successfully.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Dec 17 22:47:39 2014 +0000
+++ b/main.cpp Fri Jan 02 15:15:54 2015 +0000
@@ -82,7 +82,7 @@
ble.onDataWritten(onDataWritten); // Define callback function for BLE Data received event
/* setup advertising */
- ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED); // Indicate that Legacy Bluetooth in not supported
+ ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED| GapAdvertisingData::LE_GENERAL_DISCOVERABLE); // Indicate that Legacy Bluetooth in not supported
ble.setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED);
ble.accumulateAdvertisingPayload(GapAdvertisingData::SHORTENED_LOCAL_NAME,
(const uint8_t *)"BLE UART", sizeof("BLE UART") - 1);
