I've written a Arduino101 Bluetooth keyboard library, but it has a problem

Hi guys,

I'm trying to write a Arduino101 Bluetooth keyboard Library.
It is now recognized as a keyboard and can simulate the key.But it has some problems: sometimes the host can not receive the keys,Arduino101 frozen when sending keys.....

Does anyone know how to solve the problem?

My code is here:GitHub - mo10/Curie-bluetooth-HID-library: A library turn Curie Core boards(Arduino/Genuino 101) into a Bluetooth Keyboard.

Thanks everyone. :slight_smile:

Okey,I've solved this problem, and I added a delay(50) to slow it down.
I think setValue is too fast,but data transmission is not so fast.