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.
Dependents: BLE_iBeacon_Exercise
Fork of BLE_API_Native by
Diff: hw/nRF51822n/nRF51Gap.cpp
- Revision:
- 13:1800682b5703
- Parent:
- 0:4c3097c65247
diff -r d42122e07eb4 -r 1800682b5703 hw/nRF51822n/nRF51Gap.cpp
--- a/hw/nRF51822n/nRF51Gap.cpp Wed Feb 19 09:08:15 2014 +0000
+++ b/hw/nRF51822n/nRF51Gap.cpp Thu Feb 20 11:12:32 2014 +0000
@@ -86,10 +86,13 @@
// }
//}
- /* ToDo: Send advertising data! */
+ /* Send advertising data! */
ASSERT( ERROR_NONE == sd_ble_gap_adv_data_set(advData.getPayload(), advData.getPayloadLen(),
scanResponse.getPayload(), scanResponse.getPayloadLen()), BLE_ERROR_PARAM_OUT_OF_RANGE);
+ /* Make sure the GAP Service appearance value is aligned with the appearance from GapAdvertisingData */
+ ASSERT( ERROR_NONE == sd_ble_gap_appearance_set(advData.getAppearance()), BLE_ERROR_PARAM_OUT_OF_RANGE);
+
/* ToDo: Perform some checks on the payload, for example the Scan Response can't */
/* contains a flags AD type, etc. */
