Does the IDE have a setting for that?
If you look under Settings -> Communications -> save on send then you can choose how code is sent to the device.
after saving, the BT link is gone
That was part of the idea of the badge code so that other people can't hijack your badge :) The code that does it is down the bottom: https://github.com/dbovey/espruino/blob/master/Badge_simple.js#L60
Basically if you hold down a button for the first few seconds after boot (or if you're already connected) then the connection will stay up.
@Gordon started
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.
If you look under Settings -> Communications -> save on send then you can choose how code is sent to the device.
That was part of the idea of the badge code so that other people can't hijack your badge :) The code that does it is down the bottom: https://github.com/dbovey/espruino/blob/master/Badge_simple.js#L60
Basically if you hold down a button for the first few seconds after boot (or if you're already connected) then the connection will stay up.