I have hooked up a button to my puck.js and emulating HID keyboard clicks on the button press. It works fine for the most part, except once in a few times, it misses sending a key press over with the a 'BLE HID already sending' error.
error messageBLE HID already sending
error messageBLE HID already sending
Uncaught Error: BLE HID already sending
at line 1 col 55
NRF.sendHIDReport([0,0,0,0,0,0,0,0],function(){a&&a()})
^
in function called from system
Looks like some of them get past the try-catch but others don't.
This happens even if I'm doing these button presses slowly, so it is not an issue of too many button presses going through in a short time frame. Does the port need to be flushed or something?
I tried upgrading to 2v02.6 cutting edge firmware, but the problem still exists.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello,
I have hooked up a button to my puck.js and emulating HID keyboard clicks on the button press. It works fine for the most part, except once in a few times, it misses sending a key press over with the a 'BLE HID already sending' error.
error messageBLE HID already sending
error messageBLE HID already sending
Uncaught Error: BLE HID already sending
at line 1 col 55
NRF.sendHIDReport([0,0,0,0,0,0,0,0],function(){a&&a()})
in function called from system
Looks like some of them get past the try-catch but others don't.
This happens even if I'm doing these button presses slowly, so it is not an issue of too many button presses going through in a short time frame. Does the port need to be flushed or something?
I tried upgrading to 2v02.6 cutting edge firmware, but the problem still exists.
The essence of my code can be found below.