It looks like error 0x3401 is BLE_ERROR_NOT_ENABLED (although I've never seen that reported before!).
I think the issue is that you've enabled BLE HID with setServices, but then you're still connected by Bluetooth so the Puck can't restart the bluetooth stack to enable HID - hence the:
BLE Connected, queueing BLE restart for later
message...
So all you need to do is upload your code, then disconnect and reconnect (which will allow the PC to detect that the Puck is now also a Bluetooth keyboard) and then everything should be fine
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.
It looks like error 0x3401 is BLE_ERROR_NOT_ENABLED (although I've never seen that reported before!).
I think the issue is that you've enabled BLE HID with setServices, but then you're still connected by Bluetooth so the Puck can't restart the bluetooth stack to enable HID - hence the:
message...
So all you need to do is upload your code, then disconnect and reconnect (which will allow the PC to detect that the Puck is now also a Bluetooth keyboard) and then everything should be fine