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 BLE_HID mbed nRF51822
Revision 3:2f64c208af3a, committed 2016-04-03
- Comitter:
- Jean-Philippe Brucker
- Date:
- Sun Apr 03 22:09:25 2016 +0100
- Parent:
- 2:a0b9f9aa0e2d
- Commit message:
- v0.4 - small change to enable Win10 support
Changed in this revision
| keyboard_stream.cpp | Show annotated file Show diff for this revision Revisions of this file |
| version | Show annotated file Show diff for this revision Revisions of this file |
diff -r a0b9f9aa0e2d -r 2f64c208af3a keyboard_stream.cpp
--- a/keyboard_stream.cpp Thu Nov 19 15:16:43 2015 +0000
+++ b/keyboard_stream.cpp Sun Apr 03 22:09:25 2016 +0100
@@ -116,9 +116,11 @@
HID_DEBUG("setting up gap\r\n");
ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::KEYBOARD);
ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME,
- (uint8_t *)DEVICE_NAME, sizeof(DEVICE_NAME));
+ (const uint8_t *)DEVICE_NAME, sizeof(DEVICE_NAME));
ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::SHORTENED_LOCAL_NAME,
- (uint8_t *)SHORT_DEVICE_NAME, sizeof(SHORT_DEVICE_NAME));
+ (const uint8_t *)SHORT_DEVICE_NAME, sizeof(SHORT_DEVICE_NAME));
+
+ ble.gap().setDeviceName((const uint8_t *)DEVICE_NAME);
HID_DEBUG("advertising\r\n");
ble.gap().startAdvertising();
diff -r a0b9f9aa0e2d -r 2f64c208af3a version --- a/version Thu Nov 19 15:16:43 2015 +0000 +++ b/version Sun Apr 03 22:09:25 2016 +0100 @@ -1,1 +1,1 @@ -0.3 +0.4