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.
Fork of BLE_API by
Diff: main.cpp
- Revision:
- 7:5e1f0d7f7c7d
- Parent:
- 6:425638944835
- Child:
- 9:124ae067ae27
diff -r 425638944835 -r 5e1f0d7f7c7d main.cpp
--- a/main.cpp Fri Dec 13 00:41:11 2013 +0000
+++ b/main.cpp Mon Dec 16 12:46:12 2013 +0000
@@ -34,6 +34,7 @@
/* GAP Advertising Example (iBeacon) */
GapAdvertisingParams advParams ( GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED );
GapAdvertisingData advData;
+GapAdvertisingData scanResponse;
uint8_t iBeaconPayload[25] = { 0x4C, 0x00, 0x02, 0x15, 0xE2, 0x0A, 0x39, 0xF4, 0x73, 0xF5, 0x4B, 0xC4, 0xA1, 0x2F, 0x17, 0xD1, 0xAD, 0x07, 0xA9, 0x61, 0x00, 0x00, 0x00, 0x00, 0xC8 };
@@ -45,7 +46,7 @@
wait(2);
radio.reset();
- radio.setAdvertising(advParams, advData);
+ radio.setAdvertising(advParams, advData, scanResponse);
radio.start();
}
