Hi - I'd love it if we could figure this out. It sounds like a really useful thing to be able to do.
Maybe the best thing would be to connect to it via NRF Connect on a phone and see if by poking it in the right way you can see what needs doing to make it work.
It's a bit hard to decipher but 2A4D definitely looks like the right characteristic to listen for notifies on (I guess if there are two you just have to make sure you use the right one).
As far as I can see Espruino will just send data to that anyway without initialisation. But it may be you also have to set the protocol mode on some devices (2A4E) - maybe to PROTOCOL_MODE_REPORT (which is just 1).
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.
Hi - I'd love it if we could figure this out. It sounds like a really useful thing to be able to do.
Maybe the best thing would be to connect to it via NRF Connect on a phone and see if by poking it in the right way you can see what needs doing to make it work.
You could look at what has to happen on Espruino to make things work: https://github.com/espruino/Espruino/blob/master/targetlibs/nrf5x_12/components/ble/ble_services/ble_hids/ble_hids.c
It's a bit hard to decipher but 2A4D definitely looks like the right characteristic to listen for notifies on (I guess if there are two you just have to make sure you use the right one).
As far as I can see Espruino will just send data to that anyway without initialisation. But it may be you also have to set the protocol mode on some devices (2A4E) - maybe to PROTOCOL_MODE_REPORT (which is just
1
).