• Well, a super-quick fix is to modify CONNECTION_TIMEOUT in EspruinoHub/lib/connect.js here: https://github.com/espruino/EspruinoHub/­blob/master/lib/connect.js#L20

    To be maybe just 1.

    Now after writing to the Puck, disconnect will happen after 1 second.

    So normally, changing light state should be almost instant, however if you click twice quickly then you'll be limited to roughly a 1 second delay on the second tap - which is probably ok?

About

Avatar for Gordon @Gordon started