KeyboardStream example from BLE_HID
Dependencies: BLE_API BLE_HID mbed nRF51822
This example is currently copied as-is from the github development repo.
Diff: keyboard_stream.cpp
- Revision:
- 1:40ee264cd4f0
- Parent:
- 0:1484ce3a8cdf
- Child:
- 3:2f64c208af3a
diff -r 1484ce3a8cdf -r 40ee264cd4f0 keyboard_stream.cpp --- a/keyboard_stream.cpp Wed Oct 07 11:42:06 2015 +0100 +++ b/keyboard_stream.cpp Thu Oct 29 16:46:50 2015 +0000 @@ -42,7 +42,7 @@ BLE ble; KeyboardService *kbdServicePtr; -static const char DEVICE_NAME[] = "µKbd"; +static const char DEVICE_NAME[] = "uKbd"; static const char SHORT_DEVICE_NAME[] = "kbd1"; static void onDisconnect(const Gap::DisconnectionCallbackParams_t *params) @@ -80,7 +80,7 @@ } void send_stuff() { - send_string("hello world!"); + send_string("hello world!\n"); } void send_more_stuff() {