Interestingly, when I try and define a service, the PuckJS disonnects from the WebIDE and I need to power cycle the device and refresh the page to reconnect. Defining an optionalService doesn't return the device but also doesn't crash the Puck
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.
Interestingly, when I try and define a service, the PuckJS disonnects from the WebIDE and I need to power cycle the device and refresh the page to reconnect. Defining an optionalService doesn't return the device but also doesn't crash the Puck