Based on the example USB HID keyboard https://developer.mbed.org/users/jbru/code/BLE_HID_KeyboardStreamDemo/

Dependencies:   BLE_API mbed nRF51822

Fork of HID-kb by Microbug

Revision:
3:7d7822143a2d
Parent:
1:9e174f8fd9e9
diff -r fd2697cadbd3 -r 7d7822143a2d keyboard_stream.cpp
--- a/keyboard_stream.cpp	Wed Aug 31 19:01:30 2016 +0000
+++ b/keyboard_stream.cpp	Wed Nov 14 09:46:45 2018 +0000
@@ -84,10 +84,14 @@
 
 void send_stuff() {
     send_string("n");
+    wait(0.1);
+
 }
 
 void send_more_stuff() {
     send_string("p");
+    wait(0.1);
+
 }
 
 int main()