Thanks for your reply, I can see what you mean, there is a lot to do to the connection.
I'm hoping to find a quick way of reconnecting to the previous connection but if not then I can hopefully do it the long way.
Thanks :-)
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.
There is a lot to do after doing
device.gatt.connect()
see everything below this https://github.com/espruino/EspruinoWebTÂools/blob/master/uart.js#L209