So, if I follow your steps above it works.
But it doesn't work if I add it to the onInit.
Here are the first few lines of my code:
function onInit() {
var kb = require("ble_hid_keyboard");
NRF.setAddress("c3:92:e6:f6:f6:f6 random");
NRF.setServices(undefined, { hid : kb.report });
Also, when I add the setAddress to my onInit it seems to also prevent the HID service from starting, as when I connect to my android with the onInit as above it no longer connects as a BLE HID.
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.
So, if I follow your steps above it works.
But it doesn't work if I add it to the onInit.
Here are the first few lines of my code:
Also, when I add the setAddress to my onInit it seems to also prevent the HID service from starting, as when I connect to my android with the onInit as above it no longer connects as a BLE HID.