• It keeps working if it's not printing anything, but sometimes I need to either re-upload or switch off the bulb and then back on.

    So you need to re-upload/switch the bulb off eventually if it's printing - but it's absolutely fine if you remove the console.log?

    What if you leave the prints in, but then disconnect your PC from the Puck? Does it still stay working ok?

    Also, for the unhandled promise, can you try changing characteristic.writeValue(val); to return characteristic.writeValue(val);? I think that'll be the problem - looks like all Espruino's docs need updating as none of them mentioned that.

About

Avatar for Gordon @Gordon started