I'm using a puck as a ble HID keyboard with NRF.setServices(undefined, { hid : kb.report }); based on this Tutorial: https://www.espruino.com/BLE+Keyboard
What I'm looking for is a way to test if it is connected via bluetooth or not, for example to illuminate one of the LEDs when connected.
I've looked through the documentation and searched the forum, but can't find anything.
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'm using a puck as a ble HID keyboard with NRF.setServices(undefined, { hid : kb.report }); based on this Tutorial:
https://www.espruino.com/BLE+Keyboard
What I'm looking for is a way to test if it is connected via bluetooth or not, for example to illuminate one of the LEDs when connected.
I've looked through the documentation and searched the forum, but can't find anything.
Help appreciated.
Thanks