Could https://www.espruino.com/Reference#t_l_NRF_HID be of help with this? I do not see any event that would report on-connected, but the HID / Puck could poll / solicit some response by sending something with no input effect or set and reset it right away that sends something and would then know that a connection exists.
What I would expect and was looking for is some event on the set service... something like https://www.espruino.com/Reference#t_l_NRF_connect, but on the particular service. It is worth to check what address this connected-callback receives: is it the computer's address?
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.
Could https://www.espruino.com/Reference#t_l_NRF_HID be of help with this? I do not see any event that would report on-connected, but the HID / Puck could poll / solicit some response by sending something with no input effect or set and reset it right away that sends something and would then know that a connection exists.
What I would expect and was looking for is some event on the set service... something like https://www.espruino.com/Reference#t_l_NRF_connect, but on the particular service. It is worth to check what address this connected-callback receives: is it the computer's address?