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?
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.
Well, a super-quick fix is to modify
CONNECTION_TIMEOUT
inEspruinoHub/lib/connect.js
here: https://github.com/espruino/EspruinoHub/blob/master/lib/connect.js#L20To 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?