I just uploaded that code, and it does work for me. Well, it prints out the H - I guess it's possible there's a bug and you need a delay between the first and second character.
Are you sure you've properly disconnected? If you can't see Puck.js advertised it's usually because a device is still connected to it.
So on Android and Chromebook there are problems if you disconnect and reconnect twice (obviously the first is needed to enable HID) - but it worked fine for me on iOS.
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.
I just uploaded that code, and it does work for me. Well, it prints out the
H
- I guess it's possible there's a bug and you need a delay between the first and second character.Are you sure you've properly disconnected? If you can't see Puck.js advertised it's usually because a device is still connected to it.
Someone did report this bug: https://github.com/espruino/Espruino/issues/1101
So on Android and Chromebook there are problems if you disconnect and reconnect twice (obviously the first is needed to enable HID) - but it worked fine for me on iOS.