Usually INVALID_STATE when trying to send via HID just means that the Bangle.js is connected via Bluetooth and HID is enabled, but the connecting device isn't actually using HID.
So for example you might be connected with the Web IDE, but not paired from the OS.
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.
Usually INVALID_STATE when trying to send via HID just means that the Bangle.js is connected via Bluetooth and HID is enabled, but the connecting device isn't actually using HID.
So for example you might be connected with the Web IDE, but not paired from the OS.