Solved both issues by starting again from this page which is very helpful boilerplate.
https://beaufortfrancois.github.io/sandbox/web-bluetooth/generator/
@Ollie started
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.
Solved both issues by starting again from this page which is very helpful boilerplate.
https://beaufortfrancois.github.io/sandbox/web-bluetooth/generator/